Re: [PATCH] bluetooth: bcm203x: don't print error when allocating urb fails

2016-08-24 Thread Marcel Holtmann
Hi Wolfram,

> kmalloc will print enough information in case of failure.
> 
> Signed-off-by: Wolfram Sang 
> ---
> drivers/bluetooth/bcm203x.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)

patch has been applied to bluetooth-next tree.

Regards

Marcel

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH] bluetooth: bcm203x: don't print error when allocating urb fails

2016-08-11 Thread Wolfram Sang
On Thu, Aug 11, 2016 at 10:51:34PM +0200, Wolfram Sang wrote:
> From: Wolfram Sang 
> 
> kmalloc will print enough information in case of failure.
> 
> Signed-off-by: Wolfram Sang 

Sorry for the noise. This one was sent from the wrong email address :(



signature.asc
Description: PGP signature


[PATCH] bluetooth: bcm203x: don't print error when allocating urb fails

2016-08-11 Thread Wolfram Sang
kmalloc will print enough information in case of failure.

Signed-off-by: Wolfram Sang 
---
 drivers/bluetooth/bcm203x.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/bluetooth/bcm203x.c b/drivers/bluetooth/bcm203x.c
index 5b0ef7bbe8ac87..5ce6d4176dc302 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");
-- 
2.8.1

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH] bluetooth: bcm203x: don't print error when allocating urb fails

2016-08-11 Thread Wolfram Sang
From: Wolfram Sang 

kmalloc will print enough information in case of failure.

Signed-off-by: Wolfram Sang 
---
 drivers/bluetooth/bcm203x.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/bluetooth/bcm203x.c b/drivers/bluetooth/bcm203x.c
index 5b0ef7bbe8ac87..5ce6d4176dc302 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");
-- 
2.8.1

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html