OpenCloudOS-Kernel/drivers/net/wireless/intersil
Rustam Subkhankulov bcfd9d7f68 wifi: p54: add missing parentheses in p54_flush()
The assignment of the value to the variable total in the loop
condition must be enclosed in additional parentheses, since otherwise,
in accordance with the precedence of the operators, the conjunction
will be performed first, and only then the assignment.

Due to this error, a warning later in the function after the loop may
not occur in the situation when it should.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Signed-off-by: Rustam Subkhankulov <subkhankulov@ispras.ru>
Fixes: 0d4171e215 ("p54: implement flush callback")
Acked-by: Christian Lamparter <chunkeey@gmail.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220714134831.106004-1-subkhankulov@ispras.ru
2022-07-18 14:54:50 +03:00
..
hostap proc: remove PDE_DATA() completely 2022-01-22 08:33:37 +02:00
orinoco orinoco: Prepare cleanup of powerpc's asm/prom.h 2022-04-06 15:16:08 +03:00
p54 wifi: p54: add missing parentheses in p54_flush() 2022-07-18 14:54:50 +03:00
Kconfig intersil: remove obsolete prism54 wireless driver 2021-08-06 11:55:28 +03:00
Makefile intersil: remove obsolete prism54 wireless driver 2021-08-06 11:55:28 +03:00