diff options
author | Wei Yongjun <yjwei@cn.fujitsu.com> | 2009-02-25 05:29:52 -0500 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-02-27 00:14:49 -0500 |
commit | 7585b97a48180f754ebdade1be94092e36bef365 (patch) | |
tree | c28a697197eef13e8f2b40ff7dd0d08fd0feb535 /net/bluetooth/l2cap.c | |
parent | 2ae9a6be5f476f3512839a4d11a8f432bfd2914c (diff) |
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 'net/bluetooth/l2cap.c')
-rw-r--r-- | net/bluetooth/l2cap.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/bluetooth/l2cap.c b/net/bluetooth/l2cap.c index db6fbf129be0..ca4d3b40d5ce 100644 --- a/net/bluetooth/l2cap.c +++ b/net/bluetooth/l2cap.c | |||
@@ -518,8 +518,7 @@ static void l2cap_conn_del(struct hci_conn *hcon, int err) | |||
518 | 518 | ||
519 | BT_DBG("hcon %p conn %p, err %d", hcon, conn, err); | 519 | BT_DBG("hcon %p conn %p, err %d", hcon, conn, err); |
520 | 520 | ||
521 | if (conn->rx_skb) | 521 | kfree_skb(conn->rx_skb); |
522 | kfree_skb(conn->rx_skb); | ||
523 | 522 | ||
524 | /* Kill channels */ | 523 | /* Kill channels */ |
525 | while ((sk = conn->chan_list.head)) { | 524 | while ((sk = conn->chan_list.head)) { |