diff options
author | Christophe Ricard <christophe.ricard@gmail.com> | 2014-09-03 17:30:30 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2014-09-07 18:31:38 -0400 |
commit | 0a91e8ac240a12ac3a03581deb8cd531788c63d4 (patch) | |
tree | 60b56052806bd5a9779232992894decba9982622 | |
parent | efaf956ad6852a7ae0cc4c78bd31079f8039daa6 (diff) |
NFC: st21nfca: fix "WARNING: else is not generally useful after a break or return"
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 <christophe-h.ricard@st.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
-rw-r--r-- | drivers/nfc/st21nfca/st21nfca.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/nfc/st21nfca/st21nfca.c b/drivers/nfc/st21nfca/st21nfca.c index fcb2955f8e8d..e5f92aaa5466 100644 --- 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, | |||
862 | r = st21nfca_tm_event_send_data(hdev, skb, gate); | 862 | r = st21nfca_tm_event_send_data(hdev, skb, gate); |
863 | if (r < 0) | 863 | if (r < 0) |
864 | goto exit; | 864 | goto exit; |
865 | return 0; | ||
866 | } else { | 865 | } else { |
867 | info->dep_info.curr_nfc_dep_pni = 0; | 866 | info->dep_info.curr_nfc_dep_pni = 0; |
868 | return 1; | 867 | return 1; |