提交 33e59713 编写于 作者: W Wei Yongjun 提交者: Samuel Ortiz

NFC: Remove pointless conditional before HCI kfree_skb()

Signed-off-by: NWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
上级 f2ce3982
......@@ -398,8 +398,7 @@ static int hci_dev_session_init(struct nfc_hci_dev *hdev)
nfc_hci_disconnect_all_gates(hdev);
exit:
if (skb)
kfree_skb(skb);
kfree_skb(skb);
return r;
}
......
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册