nfc: remove unneeded break
Subsystems (4)
PATCH 1/1 nfc: remove unneeded break
From: Tom Rix <[email protected]>
A break is not needed if it is preceded by a return
Signed-off-by Tom Rix <[email protected]>
--- drivers/nfc/st21nfca/core.c | 1 - drivers/nfc/trf7970a.c | 1 - 2 files changed, 2 deletions(-)
drivers/nfc/st21nfca/core.c +0 -1
@@ -794,7 +794,6 @@ static int st21nfca_hci_im_transceive(struct nfc_hci_dev *hdev, skb->len, st21nfca_hci_data_exchange_cb, info); -break ;default :return 1 ; }
drivers/nfc/trf7970a.c +0 -1
@@ -1382,7 +1382,6 @@ static int trf7970a_is_iso15693_write_or_lock(u8 cmd)case ISO15693_CMD_WRITE_DSFID :case ISO15693_CMD_LOCK_DSFID :return 1 ; -break ;default :return 0 ; }
Signature · 1 line
2.18.1
Quoted 5 lines · On Mon, 19 Oct 2020 12:15:00 -0700 [email protected] wrote:
From: Tom Rix <[email protected]>
A break is not needed if it is preceded by a return
Signed-off-by Tom Rix <[email protected]>
Applied to net, thanks!