]> git.baikalelectronics.ru Git - kernel.git/commit
rsi: Remove unnecessary boolean condition
authorNathan Chancellor <natechancellor@gmail.com>
Fri, 21 Sep 2018 09:48:29 +0000 (02:48 -0700)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 1 Oct 2018 15:31:10 +0000 (18:31 +0300)
commit9f1b35b0e19d648c4242aa99a338b01bed8697d8
treed5c54e93786048e79bdd235e701b235c36ae1112
parent38a4d59f362e83b35d099eadd56ccc87ac8f8f6c
rsi: Remove unnecessary boolean condition

Clang warns that the address of a pointer will always evaluated as true
in a boolean context.

drivers/net/wireless/rsi/rsi_91x_mac80211.c:927:50: warning: address of
array 'key->key' will always evaluate to 'true'
[-Wpointer-bool-conversion]
        if (vif->type == NL80211_IFTYPE_STATION && key->key &&
                                                ~~ ~~~~~^~~
1 warning generated.

Link: https://github.com/ClangBuiltLinux/linux/issues/136
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/rsi/rsi_91x_mac80211.c