drivers: iio: cdc: Drop redundant if check
authorAlexander Vorwerk <zabe@avorwerk.net>
Thu, 5 Jan 2023 02:53:51 +0000 (03:53 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 8 Jan 2023 12:59:44 +0000 (12:59 +0000)
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Alexander Vorwerk <zabe@avorwerk.net>
Link: https://lore.kernel.org/r/20230105025351.12099-1-zabe@avorwerk.net
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/cdc/ad7746.c

index 6f68651..a1db546 100644 (file)
@@ -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: