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>
This commit is contained in:
Wei Yongjun
2009-02-25 18:09:33 +08:00
committed by Marcel Holtmann
parent 7585b97a48
commit b1fb06830d
3 changed files with 3 additions and 6 deletions

View File

@@ -257,7 +257,6 @@ static inline int bfusb_recv_block(struct bfusb_data *data, int hdr, unsigned ch
if (hdr & 0x10) { if (hdr & 0x10) {
BT_ERR("%s error in block", data->hdev->name); BT_ERR("%s error in block", data->hdev->name);
if (data->reassembly)
kfree_skb(data->reassembly); kfree_skb(data->reassembly);
data->reassembly = NULL; data->reassembly = NULL;
return -EIO; return -EIO;

View File

@@ -102,7 +102,6 @@ static int h4_close(struct hci_uart *hu)
skb_queue_purge(&h4->txq); skb_queue_purge(&h4->txq);
if (h4->rx_skb)
kfree_skb(h4->rx_skb); kfree_skb(h4->rx_skb);
hu->priv = NULL; hu->priv = NULL;

View File

@@ -163,7 +163,6 @@ static int ll_close(struct hci_uart *hu)
skb_queue_purge(&ll->tx_wait_q); skb_queue_purge(&ll->tx_wait_q);
skb_queue_purge(&ll->txq); skb_queue_purge(&ll->txq);
if (ll->rx_skb)
kfree_skb(ll->rx_skb); kfree_skb(ll->rx_skb);
hu->priv = NULL; hu->priv = NULL;