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:
committed by
Marcel Holtmann
parent
2ae9a6be5f
commit
7585b97a48
@@ -518,8 +518,7 @@ static void l2cap_conn_del(struct hci_conn *hcon, int err)
|
||||
|
||||
BT_DBG("hcon %p conn %p, err %d", hcon, conn, err);
|
||||
|
||||
if (conn->rx_skb)
|
||||
kfree_skb(conn->rx_skb);
|
||||
kfree_skb(conn->rx_skb);
|
||||
|
||||
/* Kill channels */
|
||||
while ((sk = conn->chan_list.head)) {
|
||||
|
Reference in New Issue
Block a user