Skip to content

Commit

Permalink
NFC: nci: Fix warning: cast to restricted __le16
Browse files Browse the repository at this point in the history
Fixing: net/nfc/nci/ntf.c:106:31: warning: cast to restricted __le16
message when building with make C=1 CF=-D__CHECK_ENDIAN__

Signed-off-by: Christophe Ricard <[email protected]>
Signed-off-by: Samuel Ortiz <[email protected]>
  • Loading branch information
cricard13 authored and Samuel Ortiz committed Dec 2, 2014
1 parent e5b53c0 commit 3ff2401
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/nfc/nci/ntf.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ static __u8 *nci_extract_rf_params_nfca_passive_poll(struct nci_dev *ndev,
struct rf_tech_specific_params_nfca_poll *nfca_poll,
__u8 *data)
{
nfca_poll->sens_res = __le16_to_cpu(*((__u16 *)data));
nfca_poll->sens_res = __le16_to_cpu(*((__le16 *)data));
data += 2;

nfca_poll->nfcid1_len = min_t(__u8, *data++, NFC_NFCID1_MAXSIZE);
Expand Down

0 comments on commit 3ff2401

Please sign in to comment.