Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Xichao Zhao and committed by
Dmitry Torokhov
d6137f25 fd1bf704

+1 -1
+1 -1
drivers/input/misc/qnap-mcu-input.c
··· 103 103 104 104 input = devm_input_allocate_device(dev); 105 105 if (!input) 106 - return dev_err_probe(dev, -ENOMEM, "no memory for input device\n"); 106 + return -ENOMEM; 107 107 108 108 idev->input = input; 109 109 idev->dev = dev;