diff options
author | Wolfram Sang <wsa-dev@sang-engineering.com> | 2016-08-11 23:00:31 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-09-27 12:20:17 +0200 |
commit | a2f195a73eba807006fb0cb882ecb552c06eea00 (patch) | |
tree | d529af8231af4ee5fa6865cfc8c0c50cc3febc65 /drivers | |
parent | 539d3040569b701ed6c826509e2f98b2876b40f0 (diff) | |
download | talos-obmc-linux-a2f195a73eba807006fb0cb882ecb552c06eea00.tar.gz talos-obmc-linux-a2f195a73eba807006fb0cb882ecb552c06eea00.zip |
bluetooth: bcm203x: 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')
-rw-r--r-- | drivers/bluetooth/bcm203x.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/bluetooth/bcm203x.c b/drivers/bluetooth/bcm203x.c index 5b0ef7bbe8ac..5ce6d4176dc3 100644 --- a/drivers/bluetooth/bcm203x.c +++ b/drivers/bluetooth/bcm203x.c @@ -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"); |