mirror of
https://github.com/torvalds/linux.git
synced 2026-01-24 23:16:46 +00:00
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>
This commit is contained in:
committed by
Dmitry Torokhov
parent
d6137f25b1
commit
3c297278a6
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user