]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: change memset to simple assignment for ht_cap.mcs.rx_mask
authorMaithili Hinge <maithili@marvell.com>
Mon, 14 Apr 2014 22:32:49 +0000 (15:32 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 22 Apr 2014 19:06:29 +0000 (15:06 -0400)
commit3a2f4c6dab33cf9b49e592e0c4d1d02cf1722159
treee8265a1eded3be61f7faf767036f7b96c4f5cc92
parent6a8cae17ffddf09de5087d563e306534a8fd6e8d
mwifiex: change memset to simple assignment for ht_cap.mcs.rx_mask

WARNING: single byte memset is suspicious.
         Swapped 2nd/3rd argument?

This code happens to work because rx_mcs is the first variable
in mcs structure. We should use 'mcs.rx_mcs' here anyway.

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Maithili Hinge <maithili@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/uap_cmd.c