diff options
author | Amitkumar Karwar <akarwar@marvell.com> | 2014-11-25 17:43:02 +0300 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-11-25 22:09:56 +0300 |
commit | 51974611154038f1aaf6ce843bdc6445d5684ee3 (patch) | |
tree | 81e6159411f74c2937bfbb977946dd68dc8821d7 /drivers | |
parent | 8b537686a116b060475d94b6f548c78289935fef (diff) | |
download | linux-51974611154038f1aaf6ce843bdc6445d5684ee3.tar.xz |
mwifiex: fix sparse warning
This patch fixes following sparse warnings:
drivers/net/wireless/mwifiex/util.c:152:19: warning: cast from restricted __le16
drivers/net/wireless/mwifiex/util.c:152:19: warning: restricted __le16 degrades to integer
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/mwifiex/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mwifiex/util.c b/drivers/net/wireless/mwifiex/util.c index a113ef8f0b8b..b1768fbf98f2 100644 --- a/drivers/net/wireless/mwifiex/util.c +++ b/drivers/net/wireless/mwifiex/util.c @@ -149,7 +149,7 @@ mwifiex_parse_mgmt_packet(struct mwifiex_private *priv, u8 *payload, u16 len, u8 category, action_code; struct ieee80211_hdr *ieee_hdr = (void *)payload; - stype = (cpu_to_le16(ieee_hdr->frame_control) & IEEE80211_FCTL_STYPE); + stype = (le16_to_cpu(ieee_hdr->frame_control) & IEEE80211_FCTL_STYPE); switch (stype) { case IEEE80211_STYPE_ACTION: |