Messages in this thread | | | Subject | Re: [PATCH] input: for best practices, return -ENOMEM instead of -1 when returning on mem allocation errors | From | Davidlohr Bueso <> | Date | Thu, 23 Sep 2010 16:56:30 -0400 |
| |
On Thu, 2010-09-23 at 08:44 -0700, Dmitry Torokhov wrote: > On Thu, Sep 23, 2010 at 10:14:05AM -0400, Davidlohr Bueso wrote: > > input: for best practices, return -ENOMEM instead of -1 when returning on mem allocation errors. > > > > Signed-off-by: Davidlohr Bueso <dave@gnu.org> > > Applied, thank you Davidlohr. > > FWIW there are more code in drivers/input/serio and drivers/input/mouse/ > that return -1 instead of a proper error codes. > Yes, I'll be preparing a patch shortly for those.
Thanks, Davidlohr
| |