diff options
author | Wolfram Sang <wsa-dev@sang-engineering.com> | 2016-08-11 23:14:46 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-08-15 15:54:27 +0200 |
commit | 792f94f5473beefd7baee437438b6450ac8a35b4 (patch) | |
tree | 7c5dd080db39fac2a9706bde0c377752944d958b /drivers/usb | |
parent | 0450ba4069226a16b2fb979fdb24a3ad60634933 (diff) |
usb: storage: usb: don't print error when allocating urb fails
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>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/storage/usb.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/storage/usb.c b/drivers/usb/storage/usb.c index 8c5f0115166a..c8afd2d4c40b 100644 --- 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 |