]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
staging: rtl8192u: Fix bitwise vs logical operator in TranslateRxSignalStuff819xUsb()
authorNathan Chancellor <nathan@kernel.org>
Sat, 14 Aug 2021 23:56:26 +0000 (16:56 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 26 Sep 2021 12:07:07 +0000 (14:07 +0200)
commit4cd05e390a3bd70de662f6380177a25b69bcedb9
treec6635fefa835694cf08f54246ffad69ebc4fb4b5
parent2f4b67bceb09cabbaeceeb278eeed27862c386ec
staging: rtl8192u: Fix bitwise vs logical operator in TranslateRxSignalStuff819xUsb()

commit 099ec97ac92911abfb102bb5c68ed270fc12e0dd upstream.

clang warns:

drivers/staging/rtl8192u/r8192U_core.c:4268:20: warning: bitwise and of
boolean expressions; did you mean logical and? [-Wbool-operation-and]
        bpacket_toself =  bpacket_match_bssid &
                          ^~~~~~~~~~~~~~~~~~~~~
                                              &&
1 warning generated.

Replace the bitwise AND with a logical one to clear up the warning, as
that is clearly what was intended.

Fixes: 8fc8598e61f6 ("Staging: Added Realtek rtl8192u driver to staging")
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Link: https://lore.kernel.org/r/20210814235625.1780033-1-nathan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/r8192U_core.c