提交 1c215d79 编写于 作者: E Eric Lapuyade 提交者: John W. Linville

NFC: Remove an impossible HCI error case

nfc_hci_recv_frame can not be called with a NULL skb.
Signed-off-by: NEric Lapuyade <eric.lapuyade@intel.com>
Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
上级 5018e490
......@@ -735,16 +735,6 @@ void nfc_hci_recv_frame(struct nfc_hci_dev *hdev, struct sk_buff *skb)
struct sk_buff *frag_skb;
int msg_len;
if (skb == NULL) {
/* TODO ELa: lower layer had permanent failure, need to
* propagate that up
*/
skb_queue_purge(&hdev->rx_hcp_frags);
return;
}
packet = (struct hcp_packet *)skb->data;
if ((packet->header & ~NFC_HCI_FRAGMENT) == 0) {
skb_queue_tail(&hdev->rx_hcp_frags, skb);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册