summaryrefslogtreecommitdiff
path: root/drivers/iio/cdc/ad7746.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iio/cdc/ad7746.c')
-rw-r--r--drivers/iio/cdc/ad7746.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/iio/cdc/ad7746.c b/drivers/iio/cdc/ad7746.c
index 6f68651ce1d5..a1db5469f2d1 100644
--- a/drivers/iio/cdc/ad7746.c
+++ b/drivers/iio/cdc/ad7746.c
@@ -285,8 +285,7 @@ static int ad7746_select_channel(struct iio_dev *indio_dev,
if (ret < 0)
return ret;
- if (chip->capdac_set != chan->channel)
- chip->capdac_set = chan->channel;
+ chip->capdac_set = chan->channel;
break;
case IIO_VOLTAGE:
case IIO_TEMP: