Bluetooth: hci_uart: Remove unused h4->rx_skb field
authorMarcel Holtmann <marcel@holtmann.org>
Sun, 5 Apr 2015 03:25:50 +0000 (20:25 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 7 Apr 2015 16:47:09 +0000 (18:47 +0200)
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.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
drivers/bluetooth/hci_h4.c

index 66db9a803373efb92c8966c9f69fdb6b8ec7aa59..3ea8f0886ed113f34c83214345e96c61c064ff32 100644 (file)
@@ -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);