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

hostap: Adjust indentation in prism2_hostapd_add_sta

Clang warns:

../drivers/net/wireless/intersil/hostap/hostap_ap.c:2511:3: warning:
misleading indentation; statement is not part of the previous 'if'
[-Wmisleading-indentation]
if (sta->tx_supp_rates & WLAN_RATE_5M5)
^
../drivers/net/wireless/intersil/hostap/hostap_ap.c:2509:2: note:
previous statement is here
if (sta->tx_supp_rates & WLAN_RATE_2M)
^
1 warning generated.

This warning occurs because there is a space before the tab on this
line. Remove it so that the indentation is consistent with the Linux
kernel coding style and clang no longer warns.

Fixes: ff1d2767d5a4 ("Add HostAP wireless driver.")
Link: https://github.com/ClangBuiltLinux/linux/issues/813
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>

authored by

Nathan Chancellor and committed by
Kalle Valo
b61156fb cf33a772

+1 -1
+1 -1
drivers/net/wireless/intersil/hostap/hostap_ap.c
··· 2508 2508 sta->supported_rates[0] = 2; 2509 2509 if (sta->tx_supp_rates & WLAN_RATE_2M) 2510 2510 sta->supported_rates[1] = 4; 2511 - if (sta->tx_supp_rates & WLAN_RATE_5M5) 2511 + if (sta->tx_supp_rates & WLAN_RATE_5M5) 2512 2512 sta->supported_rates[2] = 11; 2513 2513 if (sta->tx_supp_rates & WLAN_RATE_11M) 2514 2514 sta->supported_rates[3] = 22;