]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: temperature: mlx90635: Remove dev_err_probe() if error is -ENOMEM
authorXichao Zhao <zhao.xichao@vivo.com>
Thu, 21 Aug 2025 08:06:51 +0000 (16:06 +0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 25 Aug 2025 08:41:01 +0000 (09:41 +0100)
commit1f53971032a582dc8bcc7d26acfcfe2bf1ae51d6
tree4c4f8646dade7588648e79c46d42aaa65954aa98
parent7216d7b9beb87f4afd62d737f024254ca3c0746c
iio: temperature: mlx90635: 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>
Acked-by: Crt Mori <cmo@melexis.com>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Link: https://patch.msgid.link/20250821080723.525379-8-zhao.xichao@vivo.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/temperature/mlx90635.c