mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
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>
This commit is contained in:
committed by
Jonathan Cameron
parent
591a6bc7f4
commit
eae3e6f1c8
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user