projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
efaf956
)
NFC: st21nfca: fix "WARNING: else is not generally useful after a break or return"
author
Christophe Ricard
<
[email protected]
>
Wed, 3 Sep 2014 21:30:30 +0000
(23:30 +0200)
committer
Samuel Ortiz
<
[email protected]
>
Sun, 7 Sep 2014 22:31:38 +0000
(
00:31
+0200)
scripts/checkpatch.pl -f drivers/nfc/st21nfca.c is throwing the following:
WARNING: else is not generally useful after a break or return
#866: FILE: drivers/nfc/st21nfca/st21nfca.c:866:
+ return 0;
+ } else {
Signed-off-by: Christophe Ricard <
[email protected]
>
Signed-off-by: Samuel Ortiz <
[email protected]
>
drivers/nfc/st21nfca/st21nfca.c
patch
|
blob
|
history
diff --git
a/drivers/nfc/st21nfca/st21nfca.c
b/drivers/nfc/st21nfca/st21nfca.c
index fcb2955f8e8db159680341dae3a80399bf580c29..e5f92aaa546643abeab53c567b618514cdcf1d36 100644
(file)
--- a/
drivers/nfc/st21nfca/st21nfca.c
+++ b/
drivers/nfc/st21nfca/st21nfca.c
@@
-862,7
+862,6
@@
static int st21nfca_hci_event_received(struct nfc_hci_dev *hdev, u8 gate,
r = st21nfca_tm_event_send_data(hdev, skb, gate);
if (r < 0)
goto exit;
- return 0;
} else {
info->dep_info.curr_nfc_dep_pni = 0;
return 1;