Skip to contentSkip to conversation

Bluetooth: Remove redundant calls to h5_reset_rx

PATCH In review Loic Poulain 2 participants 2 messages Jun 23, 2014 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 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.

---
v2: remove unused h5

 drivers/bluetooth/hci_h5.c | 4 ----
 1 file changed, 4 deletions(-)
drivers/bluetooth/hci_h5.c +0 -4
index 04680ea..1fe9dba 100644
@@ -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;
Signature · 1 line
1.8.3.2
maintainer
#1 lore raw

Hi Loic,

Quoted 10 lines

h5_reset_rx is unconditionally called at the end of h5_complete_rx_pkt, no need to call it anymore after that.

---
v2: remove unused h5

drivers/bluetooth/hci_h5.c | 4 ----

1 file changed, 4 deletions(-)

patch has been applied to bluetooth-next tree.

Regards

Marcel