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>
This commit is contained in:
Christophe Ricard 2014-04-01 00:34:00 +02:00 committed by Samuel Ortiz
parent 12b25dbf11
commit cc3a9f7254
1 changed files with 1 additions and 1 deletions

View File

@ -363,7 +363,7 @@ static int st21nfca_get_iso14443_3_atqa(struct nfc_hci_dev *hdev, u16 *atqa)
goto exit;
}
*atqa = be16_to_cpu(*(u16 *) atqa_skb->data);
*atqa = be16_to_cpu(*(__be16 *) atqa_skb->data);
exit:
kfree_skb(atqa_skb);