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>
This commit is contained in:
Davidlohr Bueso
2010-09-29 18:53:35 -07:00
committed by Dmitry Torokhov
parent 7aed3fb73f
commit 6792cbbb25
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -280,7 +280,7 @@ static int powermate_alloc_buffers(struct usb_device *udev, struct powermate_dev
pm->configcr = kmalloc(sizeof(*(pm->configcr)), GFP_KERNEL);
if (!pm->configcr)
return -1;
return -ENOMEM;
return 0;
}