]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: adc: ad7266: simplify error return
authorAntoniu Miclaus <antoniu.miclaus@analog.com>
Fri, 20 Feb 2026 13:18:46 +0000 (15:18 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 23 Feb 2026 20:44:32 +0000 (20:44 +0000)
commitb40be056eefe458698d75ff2b78ed853efdf5e8a
tree0c4ab5e4fc4d10448b05fbfe7d2676f2a864d8fe
parent3d8fedcc62b663f6c04b1d172e7298c71bbddb8f
iio: adc: ad7266: simplify error return

Return PTR_ERR() directly instead of assigning it to an intermediate
variable first.

Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad7266.c