]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: proximity: Remove dev_err_probe() if error is -ENOMEM
authorXichao Zhao <zhao.xichao@vivo.com>
Thu, 21 Aug 2025 08:06:50 +0000 (16:06 +0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 25 Aug 2025 08:40:55 +0000 (09:40 +0100)
commit7216d7b9beb87f4afd62d737f024254ca3c0746c
tree4fe99f32409c7181b2c995c7741c1809bb560f5e
parent660586969ea3add4a2a29437d89ef5a6d87a5aaa
iio: proximity: Remove dev_err_probe() if error is -ENOMEM

The dev_err_probe() doesn't do anything when the error is '-ENOMEM'.
Therefore, remove the useless call to dev_err_probe(), and just return the
value instead.

Signed-off-by: Xichao Zhao <zhao.xichao@vivo.com>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Link: https://patch.msgid.link/20250821080723.525379-7-zhao.xichao@vivo.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/proximity/d3323aa.c
drivers/iio/proximity/hx9023s.c
drivers/iio/proximity/irsd200.c