Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cc3a9f72 authored by Christophe Ricard's avatar Christophe Ricard Committed by Samuel Ortiz
Browse files

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: default avatarChristophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent 12b25dbf
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -363,7 +363,7 @@ static int st21nfca_get_iso14443_3_atqa(struct nfc_hci_dev *hdev, u16 *atqa)
		goto exit;
		goto exit;
	}
	}


	*atqa = be16_to_cpu(*(u16 *) atqa_skb->data);
	*atqa = be16_to_cpu(*(__be16 *) atqa_skb->data);


exit:
exit:
	kfree_skb(atqa_skb);
	kfree_skb(atqa_skb);