]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: adc: adi-axi-adc: Slightly simplify axi_adc_create_platform_device()
authorNuno Sá <nuno.sa@analog.com>
Fri, 19 Dec 2025 15:40:39 +0000 (15:40 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 21 Dec 2025 11:42:52 +0000 (11:42 +0000)
commit0a272aaf5fc110a34f4a5aeb61db4b6d105c62e9
tree8e479d31a493df71eb4ea8cabb100a9d23e24a80
parent634a6316617e2ced7016b002d0b284a1502e9601
iio: adc: adi-axi-adc: Slightly simplify axi_adc_create_platform_device()

There's no point in having a ret variable and checking for errors (as we
do nothing with it). Instead, save some lines of code and directly
return the devm_add_action_or_reset() call.

Reviewed-by: Andy Shevchenko <andy@kernel.org>
Signed-off-by: Nuno Sá <nuno.sa@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/adi-axi-adc.c