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>
This commit is contained in:
Nuno Sá 2025-12-19 15:40:39 +00:00 • committed by Jonathan Cameron
commit 0a272aaf5f