lkml.org 
[lkml]   [2016]   [Sep]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] HID: usbkbd: return proper error code
On Wed, 31 Aug 2016, Sudip Mukherjee wrote:

> Use proper error code instead of using -1 on failure to allocate
> memory. We may use the error code later in the caller.

But we don't. usb_kbd_probe() returns -ENOMEM in case usb_kbd_alloc_mem()
fails anyway, so I fail to see the point of the change really.

--
Jiri Kosina
SUSE Labs

\
 
 \ /
  Last update: 2016-09-17 09:58    [W:0.083 / U:0.208 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site