Skip to content

Commit f2ea0c3

Browse files
hormsdavem330
authored andcommitted
nfc: nxp-nci: store __be16 value in __be16 variable
Use a __be16 variable to store the big endian value of header in nxp_nci_i2c_fw_read(). Flagged by Sparse as: .../i2c.c:113:22: warning: cast to restricted __be16 No functional changes intended. Compile tested only. Signed-off-by: Simon Horman <horms@kernel.org> Reviewed-by: Sridhar Samudrala <sridhar.samudrala@intel.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent b803d1f commit f2ea0c3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/nfc/nxp-nci/i2c.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ static int nxp_nci_i2c_fw_read(struct nxp_nci_i2c_phy *phy,
9797
struct sk_buff **skb)
9898
{
9999
struct i2c_client *client = phy->i2c_dev;
100-
u16 header;
101100
size_t frame_len;
101+
__be16 header;
102102
int r;
103103

104104
r = i2c_master_recv(client, (u8 *) &header, NXP_NCI_FW_HDR_LEN);

0 commit comments

Comments
 (0)