OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9446f24
)
NFC: st21nfca: Remove unreachable code
author
Christophe Ricard
<christophe.ricard@gmail.com>
Mon, 8 Dec 2014 21:08:09 +0000
(22:08 +0100)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Sun, 25 Jan 2015 23:09:22 +0000
(
00:09
+0100)
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>
drivers/nfc/st21nfca/st21nfca.c
patch
|
blob
|
history
diff --git
a/drivers/nfc/st21nfca/st21nfca.c
b/drivers/nfc/st21nfca/st21nfca.c
index
f2596c8
..
880193b
100644
(file)
--- 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 = {