summaryrefslogtreecommitdiff
path: root/drivers/input
diff options
context:
space:
mode:
authorXichao Zhao <zhao.xichao@vivo.com>2025-08-22 11:47:48 +0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2025-10-17 21:42:03 -0700
commitd6137f25b1915af35bfc321ada948bd71b2ee1c5 (patch)
tree02c9115dd638e1dbac82ae77cd3bec789cf5b310 /drivers/input
parentfd1bf704c75bd1ff160a300a0b72d41a89ea458a (diff)
Input: qnap-mcu-input - omit error message when memory allocation fails
The dev_err_probe() doesn't do anything when 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> Link: https://patch.msgid.link/20250822034751.244248-2-zhao.xichao@vivo.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/misc/qnap-mcu-input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/misc/qnap-mcu-input.c b/drivers/input/misc/qnap-mcu-input.c
index 76e62f0816c1..3be899bfc114 100644
--- a/drivers/input/misc/qnap-mcu-input.c
+++ b/drivers/input/misc/qnap-mcu-input.c
@@ -103,7 +103,7 @@ static int qnap_mcu_input_probe(struct platform_device *pdev)
input = devm_input_allocate_device(dev);
if (!input)
- return dev_err_probe(dev, -ENOMEM, "no memory for input device\n");
+ return -ENOMEM;
idev->input = input;
idev->dev = dev;