summaryrefslogtreecommitdiffstats
path: root/drivers/nfc/st21nfca
diff options
context:
space:
mode:
authorChristophe Ricard <christophe.ricard@gmail.com>2014-12-08 22:08:09 +0100
committerSamuel Ortiz <sameo@linux.intel.com>2015-01-26 00:09:22 +0100
commita968639bcaa7bb8fcd9a74b2c4995d754be313db (patch)
tree3ae530509c887d0e88fc7cbb55b866322685824e /drivers/nfc/st21nfca
parentNFC: st21nfcb: Fix "WARNING: invalid free of devm_ allocated data" (diff)
downloadlinux-a968639bcaa7bb8fcd9a74b2c4995d754be313db.tar.xz
linux-a968639bcaa7bb8fcd9a74b2c4995d754be313db.zip
NFC: st21nfca: Remove unreachable code
kfree_skb(skb) in st21nfca_hci_event_received is never reach. Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/nfc/st21nfca')
-rw-r--r--drivers/nfc/st21nfca/st21nfca.c2
1 files changed, 0 insertions, 2 deletions
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 = {