Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Alexander Vorwerk and committed by
Jonathan Cameron
eae3e6f1 591a6bc7

+1 -2
+1 -2
drivers/iio/cdc/ad7746.c
··· 285 285 if (ret < 0) 286 286 return ret; 287 287 288 - if (chip->capdac_set != chan->channel) 289 - chip->capdac_set = chan->channel; 288 + chip->capdac_set = chan->channel; 290 289 break; 291 290 case IIO_VOLTAGE: 292 291 case IIO_TEMP: