NFC: nci: Fix warning: cast to restricted __le16
authorChristophe Ricard <christophe.ricard@gmail.com>
Tue, 2 Dec 2014 20:27:58 +0000 (21:27 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 2 Dec 2014 21:49:17 +0000 (22:49 +0100)
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 <christophe-h.ricard@st.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
net/nfc/nci/ntf.c

index 17ee28aff68ffc307db9c7f88d32d6a53858238a..8dee73d0c4e1955c4214f66fa7de9b259740e2e3 100644 (file)
@@ -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);