Skip to contentSkip to conversation

Bluetooth: hci_uart: Remove unused h4->rx_skb field

PATCH Applied Marcel Holtmann 2 participants 2 messages Apr 5, 2015 Bluetooth drivers

lore
Share & tools
lore

Marcel Holtmann

author maintainer
#0 lore raw

PATCH 1/1 Bluetooth: hci_uart: Remove unused h4->rx_skb field

The h4->rx_skb is not used anymore and with that just remove it. Seems this was a leftover and even the kfree_skb call freeing it is rather pointless since it got never allocated.

---
 drivers/bluetooth/hci_h4.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/bluetooth/hci_h4.c +0 -3
index 66db9a803373..3ea8f0886ed1 100644
@@ -51,7 +51,6 @@
 struct h4_struct {
 	unsigned long rx_state;
 	unsigned long rx_count;
-	struct sk_buff *rx_skb;
 	struct sk_buff_head txq;
 };
 
@@ -95,8 +94,6 @@ static int h4_close(struct hci_uart *hu)
 
 	skb_queue_purge(&h4->txq);
 
-	kfree_skb(h4->rx_skb);
-
 	hu->priv = NULL;
 	kfree(h4);
 
Signature · 1 line
2.1.0
#1 lore raw

Hi Marcel,

Quoted 8 lines · Marcel Holtmann

The h4->rx_skb is not used anymore and with that just remove it. Seems this was a leftover and even the kfree_skb call freeing it is rather pointless since it got never allocated.

---
 drivers/bluetooth/hci_h4.c | 3 ---
 1 file changed, 3 deletions(-)

Applied to bluetooth-next. Thanks.

Johan