summaryrefslogtreecommitdiff
path: root/drivers/input
diff options
context:
space:
mode:
authorXichao Zhao <zhao.xichao@vivo.com>2025-08-22 11:47:49 +0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2025-10-17 21:43:06 -0700
commit3c297278a61feaf17d59fb288907fbd8f52dc879 (patch)
treeaaf96fdfc13af84d3d7d1173380b716b8c6c5746 /drivers/input
parentd6137f25b1915af35bfc321ada948bd71b2ee1c5 (diff)
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>
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/touchscreen/zforce_ts.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/input/touchscreen/zforce_ts.c b/drivers/input/touchscreen/zforce_ts.c
index df42fdf36ae3..a360749fa076 100644
--- a/drivers/input/touchscreen/zforce_ts.c
+++ b/drivers/input/touchscreen/zforce_ts.c
@@ -747,8 +747,7 @@ static int zforce_probe(struct i2c_client *client)
input_dev = devm_input_allocate_device(&client->dev);
if (!input_dev)
- return dev_err_probe(&client->dev, -ENOMEM,
- "could not allocate input device\n");
+ return -ENOMEM;
ts->client = client;
ts->input = input_dev;