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)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 19 Sep 2016 18:19:34 +0000 (20:19 +0200)
kmalloc will print enough information in case of failure.

Signed-off-by: Wolfram Sang <wsa-dev@sang-engineering.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/bcm203x.c

index 5b0ef7bbe8ac8778ace9baf2ba0a12f930c5ed69..5ce6d4176dc302b41514a8867dd1958319fecbed 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");