diff options
author | Paul Bolle <pebolle@tiscali.nl> | 2011-10-09 06:12:22 -0400 |
---|---|---|
committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-10-10 17:02:36 -0400 |
commit | d4b8d1c9c1564f4cbce86cbbee099fadf735b226 (patch) | |
tree | 10ad2fef109b95200ccfa49f9e231463de3a7fdc /drivers/bluetooth/btusb.c | |
parent | 5a9b80e2cd993f77d6d068470a4fd77fdfae44ab (diff) |
Bluetooth: btusb: hide more usb_submit_urb errors
There are still three calls of usb_submit_urb() that will print errors
if those calls return -EPERM or -ENODEV. I have never triggered these,
so I'm not sure when these return values might be seen. It still makes
sense to be silent if these occur (since "urb is being killed" and
"device got disconnected" aren't things to worry about).
Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'drivers/bluetooth/btusb.c')
-rw-r--r-- | drivers/bluetooth/btusb.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c index 18fde3be530f..abfc4ee87ee8 100644 --- a/drivers/bluetooth/btusb.c +++ b/drivers/bluetooth/btusb.c | |||
@@ -312,7 +312,8 @@ static int btusb_submit_intr_urb(struct hci_dev *hdev, gfp_t mem_flags) | |||
312 | 312 | ||
313 | err = usb_submit_urb(urb, mem_flags); | 313 | err = usb_submit_urb(urb, mem_flags); |
314 | if (err < 0) { | 314 | if (err < 0) { |
315 | BT_ERR("%s urb %p submission failed (%d)", | 315 | if (err != -EPERM && err != -ENODEV) |
316 | BT_ERR("%s urb %p submission failed (%d)", | ||
316 | hdev->name, urb, -err); | 317 | hdev->name, urb, -err); |
317 | usb_unanchor_urb(urb); | 318 | usb_unanchor_urb(urb); |
318 | } | 319 | } |
@@ -397,7 +398,8 @@ static int btusb_submit_bulk_urb(struct hci_dev *hdev, gfp_t mem_flags) | |||
397 | 398 | ||
398 | err = usb_submit_urb(urb, mem_flags); | 399 | err = usb_submit_urb(urb, mem_flags); |
399 | if (err < 0) { | 400 | if (err < 0) { |
400 | BT_ERR("%s urb %p submission failed (%d)", | 401 | if (err != -EPERM && err != -ENODEV) |
402 | BT_ERR("%s urb %p submission failed (%d)", | ||
401 | hdev->name, urb, -err); | 403 | hdev->name, urb, -err); |
402 | usb_unanchor_urb(urb); | 404 | usb_unanchor_urb(urb); |
403 | } | 405 | } |
@@ -520,7 +522,8 @@ static int btusb_submit_isoc_urb(struct hci_dev *hdev, gfp_t mem_flags) | |||
520 | 522 | ||
521 | err = usb_submit_urb(urb, mem_flags); | 523 | err = usb_submit_urb(urb, mem_flags); |
522 | if (err < 0) { | 524 | if (err < 0) { |
523 | BT_ERR("%s urb %p submission failed (%d)", | 525 | if (err != -EPERM && err != -ENODEV) |
526 | BT_ERR("%s urb %p submission failed (%d)", | ||
524 | hdev->name, urb, -err); | 527 | hdev->name, urb, -err); |
525 | usb_unanchor_urb(urb); | 528 | usb_unanchor_urb(urb); |
526 | } | 529 | } |