aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorWolfram Sang <wsa-dev@sang-engineering.com>2016-08-25 13:39:16 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-08-30 13:17:38 -0400
commit081e303e49d417961f2e55a87badd10959935eac (patch)
tree1993cef50faece4a458aedcbf9885bea7a56a5ca /drivers/usb
parent524fd35357559381d5e84b6b5af2995579ace0eb (diff)
usb: misc: idmouse: don't print on ENOMEM
All kmalloc-based functions print enough information on failures. Signed-off-by: Wolfram Sang <wsa-dev@sang-engineering.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/misc/idmouse.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/misc/idmouse.c b/drivers/usb/misc/idmouse.c
index 5105397e62fc..2975e80b7a56 100644
--- a/drivers/usb/misc/idmouse.c
+++ b/drivers/usb/misc/idmouse.c
@@ -366,7 +366,6 @@ static int idmouse_probe(struct usb_interface *interface,
366 kmalloc(IMGSIZE + dev->bulk_in_size, GFP_KERNEL); 366 kmalloc(IMGSIZE + dev->bulk_in_size, GFP_KERNEL);
367 367
368 if (!dev->bulk_in_buffer) { 368 if (!dev->bulk_in_buffer) {
369 dev_err(&interface->dev, "Unable to allocate input buffer.\n");
370 idmouse_delete(dev); 369 idmouse_delete(dev);
371 return -ENOMEM; 370 return -ENOMEM;
372 } 371 }