Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0a91e8ac authored by Christophe Ricard's avatar Christophe Ricard Committed by Samuel Ortiz
Browse files

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: default avatarChristophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent efaf956a
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -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);
			r = st21nfca_tm_event_send_data(hdev, skb, gate);
			if (r < 0)
			if (r < 0)
				goto exit;
				goto exit;
			return 0;
		} else {
		} else {
			info->dep_info.curr_nfc_dep_pni = 0;
			info->dep_info.curr_nfc_dep_pni = 0;
			return 1;
			return 1;