aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustavo F. Padovan <padovan@profusion.mobi>2011-02-14 16:53:43 -0500
committerGustavo F. Padovan <padovan@profusion.mobi>2011-02-16 14:33:22 -0500
commit03c2d0e89409b59c1ec9d9511533cedc0b7aaa69 (patch)
tree39690c1eeb3320d8abc6e3d7118af149360c7923
parentaff2cae3546df9f47f9fe24f3e85a7a84e825de8 (diff)
Bluetooth: Use usb_fill_int_urb()
Instead set urb structure directly we call usb_fill_int_urb() to set the values to us. Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
-rw-r--r--drivers/bluetooth/btusb.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
index fa84109f1bdd..89b9e51eec1f 100644
--- a/drivers/bluetooth/btusb.c
+++ b/drivers/bluetooth/btusb.c
@@ -714,15 +714,11 @@ static int btusb_send_frame(struct sk_buff *skb)
714 pipe = usb_sndisocpipe(data->udev, 714 pipe = usb_sndisocpipe(data->udev,
715 data->isoc_tx_ep->bEndpointAddress); 715 data->isoc_tx_ep->bEndpointAddress);
716 716
717 urb->dev = data->udev; 717 usb_fill_int_urb(urb, data->udev, pipe,
718 urb->pipe = pipe; 718 skb->data, skb->len, btusb_isoc_tx_complete,
719 urb->context = skb; 719 skb, data->isoc_tx_ep->bInterval);
720 urb->complete = btusb_isoc_tx_complete;
721 urb->interval = data->isoc_tx_ep->bInterval;
722 720
723 urb->transfer_flags = URB_ISO_ASAP; 721 urb->transfer_flags = URB_ISO_ASAP;
724 urb->transfer_buffer = skb->data;
725 urb->transfer_buffer_length = skb->len;
726 722
727 __fill_isoc_descriptor(urb, skb->len, 723 __fill_isoc_descriptor(urb, skb->len,
728 le16_to_cpu(data->isoc_tx_ep->wMaxPacketSize)); 724 le16_to_cpu(data->isoc_tx_ep->wMaxPacketSize));