Skip to content

Commit 74157ef

Browse files
cricard13Samuel Ortiz
authored andcommitted
NFC: hci: Fix sparse: cast to restricted __be16
Fixing "sparse: cast to restricted __be16" message when building with make C=1 CF=-D__CHECK_ENDIAN__ Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
1 parent cc3a9f7 commit 74157ef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/nfc/hci/core.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ int nfc_hci_target_discovered(struct nfc_hci_dev *hdev, u8 gate)
225225
goto exit;
226226
}
227227

228-
targets->sens_res = be16_to_cpu(*(u16 *)atqa_skb->data);
228+
targets->sens_res = be16_to_cpu(*(__be16 *)atqa_skb->data);
229229
targets->sel_res = sak_skb->data[0];
230230

231231
r = nfc_hci_get_param(hdev, NFC_HCI_RF_READER_A_GATE,

0 commit comments

Comments
 (0)