diff options
author | John Linville <linville@tuxdriver.com> | 2015-08-10 12:05:39 -0400 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2015-08-18 09:03:22 +0300 |
commit | bafc6e4cd897ef14015d8d32a04ee9bfa8d91370 (patch) | |
tree | deec15340652e5b77955b15ef85e53d95ef12784 /drivers/net/wireless/rtlwifi/rtl8192c | |
parent | 9ff4b6de26a72f76450943548ee7d9d779eeaac5 (diff) | |
download | talos-op-linux-bafc6e4cd897ef14015d8d32a04ee9bfa8d91370.tar.gz talos-op-linux-bafc6e4cd897ef14015d8d32a04ee9bfa8d91370.zip |
mwl8k: refactor some conditionals for clarity
CC [M] drivers/net/wireless/mwl8k.o
drivers/net/wireless/mwl8k.c: In function ‘mwl8k_bss_info_changed’:
drivers/net/wireless/mwl8k.c:3290:2: warning: ‘ap_mcs_rates’ may be used uninitialized in this function [-Wmaybe-uninitialized]
memcpy(cmd->mcs_set, mcs_rates, 16);
^
drivers/net/wireless/mwl8k.c:4987:5: note: ‘ap_mcs_rates’ was declared here
u8 ap_mcs_rates[16];
^
The warning was bogus. But the conditionals were rather complicated,
with multiple redundant checks. This consolidates the checking and
makes it more readable IMHO.
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/rtlwifi/rtl8192c')
0 files changed, 0 insertions, 0 deletions