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

Input: zforce_ts - 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-3-zhao.xichao@vivo.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Xichao Zhao and committed by
Dmitry Torokhov
3c297278 d6137f25

+1 -2
+1 -2
drivers/input/touchscreen/zforce_ts.c
··· 747 747 748 748 input_dev = devm_input_allocate_device(&client->dev); 749 749 if (!input_dev) 750 - return dev_err_probe(&client->dev, -ENOMEM, 751 - "could not allocate input device\n"); 750 + return -ENOMEM; 752 751 753 752 ts->client = client; 754 753 ts->input = input_dev;