mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-06 00:39:48 +00:00
NFC: hci: 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:
parent
cc3a9f7254
commit
74157ef54c
1 changed files with 1 additions and 1 deletions
|
@ -225,7 +225,7 @@ int nfc_hci_target_discovered(struct nfc_hci_dev *hdev, u8 gate)
|
||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
targets->sens_res = be16_to_cpu(*(u16 *)atqa_skb->data);
|
targets->sens_res = be16_to_cpu(*(__be16 *)atqa_skb->data);
|
||||||
targets->sel_res = sak_skb->data[0];
|
targets->sel_res = sak_skb->data[0];
|
||||||
|
|
||||||
r = nfc_hci_get_param(hdev, NFC_HCI_RF_READER_A_GATE,
|
r = nfc_hci_get_param(hdev, NFC_HCI_RF_READER_A_GATE,
|
||||||
|
|
Loading…
Reference in a new issue