Commit 539d3040 authored by Wolfram Sang's avatar Wolfram Sang Committed by Greg Kroah-Hartman

mmc: host: vub300: don't print error when allocating urb fails

kmalloc will print enough information in case of failure.
Signed-off-by: default avatarWolfram Sang <wsa-dev@sang-engineering.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4e248000
...@@ -2116,13 +2116,11 @@ static int vub300_probe(struct usb_interface *interface, ...@@ -2116,13 +2116,11 @@ static int vub300_probe(struct usb_interface *interface,
command_out_urb = usb_alloc_urb(0, GFP_KERNEL); command_out_urb = usb_alloc_urb(0, GFP_KERNEL);
if (!command_out_urb) { if (!command_out_urb) {
retval = -ENOMEM; retval = -ENOMEM;
dev_err(&udev->dev, "not enough memory for command_out_urb\n");
goto error0; goto error0;
} }
command_res_urb = usb_alloc_urb(0, GFP_KERNEL); command_res_urb = usb_alloc_urb(0, GFP_KERNEL);
if (!command_res_urb) { if (!command_res_urb) {
retval = -ENOMEM; retval = -ENOMEM;
dev_err(&udev->dev, "not enough memory for command_res_urb\n");
goto error1; goto error1;
} }
/* this also allocates memory for our VUB300 mmc host device */ /* this also allocates memory for our VUB300 mmc host device */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment