Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b1fb0683 authored by Wei Yongjun's avatar Wei Yongjun Committed by Marcel Holtmann
Browse files

Bluetooth: Remove some pointless conditionals before kfree_skb()



Remove some pointless conditionals before kfree_skb().

Signed-off-by: default avatarWei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 7585b97a
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -257,7 +257,6 @@ static inline int bfusb_recv_block(struct bfusb_data *data, int hdr, unsigned ch

	if (hdr & 0x10) {
		BT_ERR("%s error in block", data->hdev->name);
		if (data->reassembly)
		kfree_skb(data->reassembly);
		data->reassembly = NULL;
		return -EIO;
+1 −2
Original line number Diff line number Diff line
@@ -102,7 +102,6 @@ static int h4_close(struct hci_uart *hu)

	skb_queue_purge(&h4->txq);

	if (h4->rx_skb)
	kfree_skb(h4->rx_skb);

	hu->priv = NULL;
+1 −2
Original line number Diff line number Diff line
@@ -163,7 +163,6 @@ 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);

	hu->priv = NULL;