diff options
Diffstat (limited to 'drivers/bluetooth/ath3k.c')
-rw-r--r-- | drivers/bluetooth/ath3k.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/bluetooth/ath3k.c b/drivers/bluetooth/ath3k.c index be571fef185d..4aef96b0eb63 100644 --- a/drivers/bluetooth/ath3k.c +++ b/drivers/bluetooth/ath3k.c | |||
@@ -191,9 +191,10 @@ static int ath3k_load_firmware(struct usb_device *udev, | |||
191 | sent += 20; | 191 | sent += 20; |
192 | count -= 20; | 192 | count -= 20; |
193 | 193 | ||
194 | pipe = usb_sndbulkpipe(udev, 0x02); | ||
195 | |||
194 | while (count) { | 196 | while (count) { |
195 | size = min_t(uint, count, BULK_SIZE); | 197 | size = min_t(uint, count, BULK_SIZE); |
196 | pipe = usb_sndbulkpipe(udev, 0x02); | ||
197 | memcpy(send_buf, firmware->data + sent, size); | 198 | memcpy(send_buf, firmware->data + sent, size); |
198 | 199 | ||
199 | err = usb_bulk_msg(udev, pipe, send_buf, size, | 200 | err = usb_bulk_msg(udev, pipe, send_buf, size, |