Input: return -ENOMEM in select drivers when memory allocation fails
authorDavidlohr Bueso <dave@gnu.org>
Thu, 30 Sep 2010 01:53:35 +0000 (18:53 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 13 Oct 2010 14:49:23 +0000 (07:49 -0700)
commit6792cbbb254712a8c0fa8a4c97c8d521c7c41c28
tree3ab25c521042133a27f9875ad1d366e4b44ad68f
parent7aed3fb73f4ac7912ce9e0c232a15ee012bf4be5
Input: return -ENOMEM in select drivers when memory allocation fails

Instead of using -1 let's start using proper error codes.

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/misc/powermate.c
drivers/input/mouse/elantech.c
drivers/input/mouse/synaptics.c
drivers/input/mouse/trackpoint.c