Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mwl8k: Fixing Sparse ENDIAN CHECK warning

Fixing following sparse warning
>drivers/net/wireless/mwl8k.c:2780:15: warning: incorrect type in assignment (different base types)
>drivers/net/wireless/mwl8k.c:2780:15: expected restricted unsigned short [usertype] channel
>drivers/net/wireless/mwl8k.c:2780:15: got unsigned short [unsigned] [usertype] hw_value

Signed-off-by: Yogesh Ashok Powar <yogeshp@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

authored by

Yogesh Ashok Powar and committed by
John W. Linville
604c4ef1 54420473

+1 -1
+1 -1
drivers/net/wireless/mwl8k.c
··· 2777 2777 else if (channel->band == IEEE80211_BAND_5GHZ) 2778 2778 cmd->band = cpu_to_le16(0x4); 2779 2779 2780 - cmd->channel = channel->hw_value; 2780 + cmd->channel = cpu_to_le16(channel->hw_value); 2781 2781 2782 2782 if (conf->channel_type == NL80211_CHAN_NO_HT || 2783 2783 conf->channel_type == NL80211_CHAN_HT20) {