Skip to content

Commit 05c3012

Browse files
nathanchancegregkh
authored andcommitted
NFC: pn544: Adjust indentation in pn544_hci_check_presence
commit 5080832 upstream. Clang warns ../drivers/nfc/pn544/pn544.c:696:4: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation] return nfc_hci_send_cmd(hdev, NFC_HCI_RF_READER_A_GATE, ^ ../drivers/nfc/pn544/pn544.c:692:3: note: previous statement is here if (target->nfcid1_len != 4 && target->nfcid1_len != 7 && ^ 1 warning generated. This warning occurs because there is a space after the tab on this line. Remove it so that the indentation is consistent with the Linux kernel coding style and clang no longer warns. Fixes: da05285 ("NFC: Add pn544 presence check for different targets") Link: ClangBuiltLinux/linux#814 Signed-off-by: Nathan Chancellor <[email protected]> Signed-off-by: David S. Miller <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 24a7c10 commit 05c3012

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/nfc/pn544/pn544.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ static int pn544_hci_check_presence(struct nfc_hci_dev *hdev,
704704
target->nfcid1_len != 10)
705705
return -EOPNOTSUPP;
706706

707-
return nfc_hci_send_cmd(hdev, NFC_HCI_RF_READER_A_GATE,
707+
return nfc_hci_send_cmd(hdev, NFC_HCI_RF_READER_A_GATE,
708708
PN544_RF_READER_CMD_ACTIVATE_NEXT,
709709
target->nfcid1, target->nfcid1_len, NULL);
710710
} else if (target->supported_protocols & (NFC_PROTO_JEWEL_MASK |

0 commit comments

Comments
 (0)