diff options
| author | Marcel Holtmann <marcel@holtmann.org> | 2015-04-04 23:25:50 -0400 |
|---|---|---|
| committer | Marcel Holtmann <marcel@holtmann.org> | 2015-04-07 12:47:09 -0400 |
| commit | 72b9439be96ffc816a131cd92fd33ef6541871d7 (patch) | |
| tree | bcac86b668842acb780015d469a0c1ee0a53cf9f /drivers/bluetooth | |
| parent | facf5225e88c03170e66f76ff498e0c29f41a64a (diff) | |
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.
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'drivers/bluetooth')
| -rw-r--r-- | drivers/bluetooth/hci_h4.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/bluetooth/hci_h4.c b/drivers/bluetooth/hci_h4.c index 66db9a803373..3ea8f0886ed1 100644 --- a/drivers/bluetooth/hci_h4.c +++ b/drivers/bluetooth/hci_h4.c | |||
| @@ -51,7 +51,6 @@ | |||
| 51 | struct h4_struct { | 51 | struct h4_struct { |
| 52 | unsigned long rx_state; | 52 | unsigned long rx_state; |
| 53 | unsigned long rx_count; | 53 | unsigned long rx_count; |
| 54 | struct sk_buff *rx_skb; | ||
| 55 | struct sk_buff_head txq; | 54 | struct sk_buff_head txq; |
| 56 | }; | 55 | }; |
| 57 | 56 | ||
| @@ -95,8 +94,6 @@ static int h4_close(struct hci_uart *hu) | |||
| 95 | 94 | ||
| 96 | skb_queue_purge(&h4->txq); | 95 | skb_queue_purge(&h4->txq); |
| 97 | 96 | ||
| 98 | kfree_skb(h4->rx_skb); | ||
| 99 | |||
| 100 | hu->priv = NULL; | 97 | hu->priv = NULL; |
| 101 | kfree(h4); | 98 | kfree(h4); |
| 102 | 99 | ||
