diff options
author | Alexander Vorwerk <zabe@avorwerk.net> | 2023-01-05 05:53:51 +0300 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2023-01-08 15:59:44 +0300 |
commit | eae3e6f1c86f4499325cdaa3df4b90cd1f32464c (patch) | |
tree | 0787639fa6c86b518310e5dadda8c1b3f7e519d0 /drivers/iio | |
parent | 591a6bc7f40d3ea6492527f595f1588e127d0b54 (diff) | |
download | linux-eae3e6f1c86f4499325cdaa3df4b90cd1f32464c.tar.xz |
drivers: iio: cdc: Drop redundant if check
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>
Diffstat (limited to 'drivers/iio')
-rw-r--r-- | drivers/iio/cdc/ad7746.c | 3 |
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: |