ChangeSet 1.1587.3.17, 2004/04/29 10:40:57-07:00, greg@kroah.com USB: remove the wait_for_urb function from bfusb driver as it's no longer needed. drivers/bluetooth/bfusb.c | 9 --------- 1 files changed, 9 deletions(-) diff -Nru a/drivers/bluetooth/bfusb.c b/drivers/bluetooth/bfusb.c --- a/drivers/bluetooth/bfusb.c Fri May 14 15:31:23 2004 +++ b/drivers/bluetooth/bfusb.c Fri May 14 15:31:23 2004 @@ -98,14 +98,6 @@ static void bfusb_tx_complete(struct urb *urb, struct pt_regs *regs); static void bfusb_rx_complete(struct urb *urb, struct pt_regs *regs); -static inline void bfusb_wait_for_urb(struct urb *urb) -{ - while (atomic_read(&urb->count) > 1) { - current->state = TASK_UNINTERRUPTIBLE; - schedule_timeout((5 * HZ + 999) / 1000); - } -} - static struct urb *bfusb_get_completed(struct bfusb *bfusb) { struct sk_buff *skb; @@ -132,7 +124,6 @@ while ((skb = skb_dequeue(&bfusb->pending_q))) { urb = ((struct bfusb_scb *) skb->cb)->urb; usb_unlink_urb(urb); - bfusb_wait_for_urb(urb); skb_queue_tail(&bfusb->completed_q, skb); }