summaryrefslogtreecommitdiffstats
path: root/drivers/bluetooth/hci_ll.c
diff options
context:
space:
mode:
authorWei Yongjun <yjwei@cn.fujitsu.com>2009-02-25 11:09:33 +0100
committerMarcel Holtmann <marcel@holtmann.org>2009-02-27 06:14:50 +0100
commitb1fb06830dc870d862f7f80e276130c0ab84d59f (patch)
tree35aeb36efefcf8cbfbc43b1b1ff84c9bbc76ad56 /drivers/bluetooth/hci_ll.c
parentBluetooth: Remove some pointless conditionals before kfree_skb() (diff)
downloadlinux-b1fb06830dc870d862f7f80e276130c0ab84d59f.tar.xz
linux-b1fb06830dc870d862f7f80e276130c0ab84d59f.zip
Bluetooth: Remove some pointless conditionals before kfree_skb()
Remove some pointless conditionals before kfree_skb(). Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/bluetooth/hci_ll.c')
-rw-r--r--drivers/bluetooth/hci_ll.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/bluetooth/hci_ll.c b/drivers/bluetooth/hci_ll.c
index b91d45a41b2f..5c65014635be 100644
--- a/drivers/bluetooth/hci_ll.c
+++ b/drivers/bluetooth/hci_ll.c
@@ -163,8 +163,7 @@ static int ll_close(struct hci_uart *hu)
skb_queue_purge(&ll->tx_wait_q);
skb_queue_purge(&ll->txq);
- if (ll->rx_skb)
- kfree_skb(ll->rx_skb);
+ kfree_skb(ll->rx_skb);
hu->priv = NULL;