]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: accel: msa311: Remove dev_err_probe() if error is -ENOMEM
authorXichao Zhao <zhao.xichao@vivo.com>
Thu, 21 Aug 2025 08:06:45 +0000 (16:06 +0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 25 Aug 2025 08:39:46 +0000 (09:39 +0100)
commit666a22bb31e48ec467b77ec61fe1630a18ea0c2d
tree19daf4d2edc79334fdeca26a131665821e1b37e5
parent3f33d1530c2c9576b57ecd220bfa7e527184a80b
iio: accel: msa311: 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-2-zhao.xichao@vivo.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/msa311.c