Skip to content

Commit cc3a9f7

Browse files
cricard13Samuel Ortiz
authored andcommitted
NFC: st21nfca: 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 12b25db commit cc3a9f7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/nfc/st21nfca/st21nfca.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ static int st21nfca_get_iso14443_3_atqa(struct nfc_hci_dev *hdev, u16 *atqa)
363363
goto exit;
364364
}
365365

366-
*atqa = be16_to_cpu(*(u16 *) atqa_skb->data);
366+
*atqa = be16_to_cpu(*(__be16 *) atqa_skb->data);
367367

368368
exit:
369369
kfree_skb(atqa_skb);

0 commit comments

Comments
 (0)