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

Commit 9f98c6e6 authored by Richard Porter's avatar Richard Porter Committed by Greg Kroah-Hartman
Browse files

staging: ks7010: use le16_to_cpu() to access __le16 field



Fixes sparse warning:
drivers/staging/ks7010/ks_hostif.c:959:24: warning: restricted __le16
degrades to integer

Signed-off-by: default avatarRichard Porter <dick@acm.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1d80d1bd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -956,7 +956,7 @@ void hostif_associate_indication(struct ks_wlan_private *priv)
	wrqu.data.length += sizeof(associnfo_leader1) - 1;
	pbuf += sizeof(associnfo_leader1) - 1;

	pb += assoc_req->req_ies_size;
	pb += le16_to_cpu(assoc_req->req_ies_size);
	for (i = 0; i < le16_to_cpu(assoc_resp->resp_ies_size); i++)
		pbuf += sprintf(pbuf, "%02x", *(pb + i));
	wrqu.data.length += (le16_to_cpu(assoc_resp->resp_ies_size)) * 2;