diff options
author | Loic Poulain <loic.poulain@intel.com> | 2014-06-23 15:49:46 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-07-03 17:42:45 +0200 |
commit | 37f468cd171c7d76d560b6bd5c09dc506ab9dbec (patch) | |
tree | 6d091cb8e651f628ce4dd9f1bcf1012582718859 /drivers/bluetooth/hci_h5.c | |
parent | 80afeb6cec3739d3167e1fef6214224f0f588f13 (diff) | |
download | blackbird-op-linux-37f468cd171c7d76d560b6bd5c09dc506ab9dbec.tar.gz blackbird-op-linux-37f468cd171c7d76d560b6bd5c09dc506ab9dbec.zip |
Bluetooth: Remove redundant calls to h5_reset_rx
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>
Diffstat (limited to 'drivers/bluetooth/hci_h5.c')
-rw-r--r-- | drivers/bluetooth/hci_h5.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/bluetooth/hci_h5.c b/drivers/bluetooth/hci_h5.c index fede8ca7147c..caacb422995d 100644 --- 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; |