1
0
Fork 0

NFC: Remove pointless conditional before HCI kfree_skb()

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
wifi-calibration
Wei Yongjun 2012-08-28 21:02:40 +08:00 committed by Samuel Ortiz
parent f2ce39828a
commit 33e5971358
2 changed files with 2 additions and 4 deletions

View File

@ -398,8 +398,7 @@ disconnect_all:
nfc_hci_disconnect_all_gates(hdev);
exit:
if (skb)
kfree_skb(skb);
kfree_skb(skb);
return r;
}

View File

@ -241,8 +241,7 @@ static void nfc_shdlc_rcv_i_frame(struct nfc_shdlc *shdlc,
}
exit:
if (skb)
kfree_skb(skb);
kfree_skb(skb);
}
static void nfc_shdlc_rcv_ack(struct nfc_shdlc *shdlc, int y_nr)