Commit a968639b authored by Christophe Ricard's avatar Christophe Ricard Committed by Samuel Ortiz
Browse files

NFC: st21nfca: Remove unreachable code



kfree_skb(skb) in st21nfca_hci_event_received is never reach.

Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarChristophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent 9446f248
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -845,8 +845,6 @@ static int st21nfca_hci_event_received(struct nfc_hci_dev *hdev, u8 gate,
	default:
		return 1;
	}
	kfree_skb(skb);
	return 0;
}

static struct nfc_hci_ops st21nfca_hci_ops = {