Commit d6137f25 authored by Xichao Zhao's avatar Xichao Zhao Committed by Dmitry Torokhov
Browse files

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: default avatarXichao Zhao <zhao.xichao@vivo.com>
Link: https://patch.msgid.link/20250822034751.244248-2-zhao.xichao@vivo.com


Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent fd1bf704
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;