Re: [PATCH] HID: hiddev: Return specific error codes on connect failure

From
Jiri Kosina <jikos@kernel.org>
Date
2021-03-08 10:14:19
Reply to
Jason Gerecke, 2021-02-11
On Thu, 11 Feb 2021, Jason Gerecke wrote:
The only caller of this function only cares about gross success/failure
but we still might as well resolve the following smatch warning and fix
the other error paths as well:

    hiddev.c:894 hiddev_connect() warn: returning -1 instead of -ENOMEM is sloppy

Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com>
Applied, thank you Jason.

-- 
Jiri Kosina
SUSE Labs
Thread (2 messages) 2 messages, 2 authors, last reply 2021-03-08
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help