]> git.baikalelectronics.ru Git - kernel.git/commit
staging: rtl8723bs: Remove unnecessary parentheses and dead commented code
authorNathan Chancellor <natechancellor@gmail.com>
Thu, 4 Oct 2018 01:32:51 +0000 (18:32 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 9 Oct 2018 13:13:24 +0000 (15:13 +0200)
commitad911560db3e010081ce47253899b431cb135766
tree3901d0b05e30d50e638acc490ecd119502082f00
parent14f2e9b88154a3e7a1b500196bf7112604a3b627
staging: rtl8723bs: Remove unnecessary parentheses and dead commented code

Clang warns when multiple pairs of parentheses are used for a single
conditional statement.

drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c:3351:20: warning:
equality comparison with extraneous parentheses [-Wparentheses-equality]

The commented code is pointless since _HW_STATE_AP_ is handled right
below this block.

Link: https://github.com/ClangBuiltLinux/linux/issues/168
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c