mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-12 03:26:26 +00:00
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>
This commit is contained in:
parent
f2ce39828a
commit
33e5971358
2 changed files with 2 additions and 4 deletions
|
@ -398,7 +398,6 @@ static int hci_dev_session_init(struct nfc_hci_dev *hdev)
|
||||||
nfc_hci_disconnect_all_gates(hdev);
|
nfc_hci_disconnect_all_gates(hdev);
|
||||||
|
|
||||||
exit:
|
exit:
|
||||||
if (skb)
|
|
||||||
kfree_skb(skb);
|
kfree_skb(skb);
|
||||||
|
|
||||||
return r;
|
return r;
|
||||||
|
|
|
@ -241,7 +241,6 @@ static void nfc_shdlc_rcv_i_frame(struct nfc_shdlc *shdlc,
|
||||||
}
|
}
|
||||||
|
|
||||||
exit:
|
exit:
|
||||||
if (skb)
|
|
||||||
kfree_skb(skb);
|
kfree_skb(skb);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue