]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: light: Remove dev_err_probe() if error is -ENOMEM
authorXichao Zhao <zhao.xichao@vivo.com>
Thu, 21 Aug 2025 08:06:49 +0000 (16:06 +0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 25 Aug 2025 08:40:45 +0000 (09:40 +0100)
commit660586969ea3add4a2a29437d89ef5a6d87a5aaa
treee42937adf77dea1474ae9899c5e33b667e40db01
parentd3a7db87dad680b87473bd5d79139142cb88bbde
iio: light: 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-6-zhao.xichao@vivo.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/opt4060.c
drivers/iio/light/veml6040.c