From: Christophe Ricard Date: Mon, 8 Dec 2014 21:08:09 +0000 (+0100) Subject: NFC: st21nfca: Remove unreachable code X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a968639bcaa7bb8fcd9a74b2c4995d754be313db;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git NFC: st21nfca: Remove unreachable code kfree_skb(skb) in st21nfca_hci_event_received is never reach. Reported-by: Dan Carpenter Signed-off-by: Christophe Ricard Signed-off-by: Samuel Ortiz --- diff --git a/drivers/nfc/st21nfca/st21nfca.c b/drivers/nfc/st21nfca/st21nfca.c index f2596c8d68b0..880193b4a053 100644 --- a/drivers/nfc/st21nfca/st21nfca.c +++ b/drivers/nfc/st21nfca/st21nfca.c @@ -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 = {