Skip to content

Commit

Permalink
NFC: Remove an impossible HCI error case
Browse files Browse the repository at this point in the history
nfc_hci_recv_frame can not be called with a NULL skb.

Signed-off-by: Eric Lapuyade <eric.lapuyade@intel.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
  • Loading branch information
Eric Lapuyade authored and John W. Linville committed Jul 9, 2012
1 parent 5018e49 commit 1c215d7
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions net/nfc/hci/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1c215d7

Please sign in to comment.