git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bluetooth: Improve USB driver throughput by increasing the frame size
[pandora-kernel.git]
/
drivers
/
bluetooth
/
btusb.c
diff --git
a/drivers/bluetooth/btusb.c
b/drivers/bluetooth/btusb.c
index
e70c57e
..
124db8c
100644
(file)
--- a/
drivers/bluetooth/btusb.c
+++ b/
drivers/bluetooth/btusb.c
@@
-301,7
+301,7
@@
static int btusb_submit_bulk_urb(struct hci_dev *hdev, gfp_t mem_flags)
struct urb *urb;
unsigned char *buf;
unsigned int pipe;
struct urb *urb;
unsigned char *buf;
unsigned int pipe;
- int err, size;
+ int err, size
= HCI_MAX_FRAME_SIZE
;
BT_DBG("%s", hdev->name);
BT_DBG("%s", hdev->name);
@@
-312,8
+312,6
@@
static int btusb_submit_bulk_urb(struct hci_dev *hdev, gfp_t mem_flags)
if (!urb)
return -ENOMEM;
if (!urb)
return -ENOMEM;
- size = le16_to_cpu(data->bulk_rx_ep->wMaxPacketSize);
-
buf = kmalloc(size, mem_flags);
if (!buf) {
usb_free_urb(urb);
buf = kmalloc(size, mem_flags);
if (!buf) {
usb_free_urb(urb);