projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80afeb6
)
Bluetooth: Remove redundant calls to h5_reset_rx
author
Loic Poulain
<loic.poulain@intel.com>
Mon, 23 Jun 2014 13:49:46 +0000
(15:49 +0200)
committer
Marcel Holtmann
<marcel@holtmann.org>
Thu, 3 Jul 2014 15:42:45 +0000
(17:42 +0200)
h5_reset_rx is unconditionally called at the end of
h5_complete_rx_pkt, no need to call it anymore after
that.
Signed-off-by: Loic Poulain <loic.poulain@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/hci_h5.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/bluetooth/hci_h5.c
b/drivers/bluetooth/hci_h5.c
index fede8ca7147c8bbc778f1a25ec15501ed5f15f99..caacb422995dd4a69e18585275f32904a17bf708 100644
(file)
--- a/
drivers/bluetooth/hci_h5.c
+++ b/
drivers/bluetooth/hci_h5.c
@@
-355,10
+355,7
@@
static void h5_complete_rx_pkt(struct hci_uart *hu)
static int h5_rx_crc(struct hci_uart *hu, unsigned char c)
{
- struct h5 *h5 = hu->priv;
-
h5_complete_rx_pkt(hu);
- h5_reset_rx(h5);
return 0;
}
@@
-373,7
+370,6
@@
static int h5_rx_payload(struct hci_uart *hu, unsigned char c)
h5->rx_pending = 2;
} else {
h5_complete_rx_pkt(hu);
- h5_reset_rx(h5);
}
return 0;