bluetooth: bcm203x: don't print error when allocating urb fails
authorWolfram Sang <wsa-dev@sang-engineering.com>
Thu, 11 Aug 2016 21:00:31 +0000 (23:00 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Sep 2016 10:20:17 +0000 (12:20 +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/bluetooth/bcm203x.c

index 5b0ef7b..5ce6d41 100644 (file)
@@ -185,10 +185,8 @@ static int bcm203x_probe(struct usb_interface *intf, const struct usb_device_id
        data->state = BCM203X_LOAD_MINIDRV;
 
        data->urb = usb_alloc_urb(0, GFP_KERNEL);
-       if (!data->urb) {
-               BT_ERR("Can't allocate URB");
+       if (!data->urb)
                return -ENOMEM;
-       }
 
        if (request_firmware(&firmware, "BCM2033-MD.hex", &udev->dev) < 0) {
                BT_ERR("Mini driver request failed");