projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0450ba4
)
usb: storage: usb: don't print error when allocating urb fails
author
Wolfram Sang
<wsa-dev@sang-engineering.com>
Thu, 11 Aug 2016 21:14:46 +0000
(23:14 +0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Mon, 15 Aug 2016 13:54:27 +0000
(15:54 +0200)
kmalloc will print enough information in case of failure.
Signed-off-by: Wolfram Sang <wsa-dev@sang-engineering.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/storage/usb.c
patch
|
blob
|
history
diff --git
a/drivers/usb/storage/usb.c
b/drivers/usb/storage/usb.c
index 8c5f0115166ab0bf3761357d4d5a466409a6896d..c8afd2d4c40b70a245615c08471ac1ae3d6a6fc2 100644
(file)
--- a/
drivers/usb/storage/usb.c
+++ b/
drivers/usb/storage/usb.c
@@
-794,10
+794,8
@@
static int usb_stor_acquire_resources(struct us_data *us)
struct task_struct *th;
us->current_urb = usb_alloc_urb(0, GFP_KERNEL);
- if (!us->current_urb) {
- usb_stor_dbg(us, "URB allocation failed\n");
+ if (!us->current_urb)
return -ENOMEM;
- }
/*
* Just before we start our control thread, initialize