diff options
author | Christophe Ricard <christophe.ricard@gmail.com> | 2014-04-01 02:34:00 +0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2014-04-22 02:37:29 +0400 |
commit | cc3a9f72548e9f497e77b7f6625f021b8cd2bb77 (patch) | |
tree | b0d362f2081cad4c33ae18f7167252845b693b16 /drivers/nfc/st21nfca | |
parent | 12b25dbf119337ce51dc93e5ecd7cbe891877328 (diff) | |
download | linux-cc3a9f72548e9f497e77b7f6625f021b8cd2bb77.tar.xz |
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>
Diffstat (limited to 'drivers/nfc/st21nfca')
-rw-r--r-- | drivers/nfc/st21nfca/st21nfca.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nfc/st21nfca/st21nfca.c b/drivers/nfc/st21nfca/st21nfca.c index 9e9b9f1140c8..32d5e8742ee8 100644 --- a/drivers/nfc/st21nfca/st21nfca.c +++ b/drivers/nfc/st21nfca/st21nfca.c @@ -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); |