aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorWolfram Sang <wsa-dev@sang-engineering.com>2016-08-25 13:39:01 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-08-30 13:17:37 -0400
commitb62a7a99b89970b66ebc1b1fd8ad29116ffc3519 (patch)
tree0e1848e6b418a417e04fc374a06b554b498589a2 /drivers/usb
parent93fab7955eb3af2de4c51f15f15a0881bf97c907 (diff)
usb: core: urb: 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/core/urb.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/core/urb.c b/drivers/usb/core/urb.c
index c601e25b609f..a9039696476e 100644
--- a/drivers/usb/core/urb.c
+++ b/drivers/usb/core/urb.c
@@ -68,10 +68,8 @@ struct urb *usb_alloc_urb(int iso_packets, gfp_t mem_flags)
68 urb = kmalloc(sizeof(struct urb) + 68 urb = kmalloc(sizeof(struct urb) +
69 iso_packets * sizeof(struct usb_iso_packet_descriptor), 69 iso_packets * sizeof(struct usb_iso_packet_descriptor),
70 mem_flags); 70 mem_flags);
71 if (!urb) { 71 if (!urb)
72 printk(KERN_ERR "alloc_urb: kmalloc failed\n");
73 return NULL; 72 return NULL;
74 }
75 usb_init_urb(urb); 73 usb_init_urb(urb);
76 return urb; 74 return urb;
77} 75}