OpenCloudOS-Kernel/drivers/net/wireless/intersil/p54
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
..
Kconfig intersil: fix wiki website url 2020-08-02 18:23:21 +03:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
eeprom.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
eeprom.h p54: Replace zero-length array with flexible-array member 2020-03-23 19:01:13 +02:00
fwio.c wifi: p54: Use the bitmap API to allocate bitmaps 2022-07-18 14:51:54 +03:00
led.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
lmac.h p54: Replace zero-length array with flexible-array member 2020-03-23 19:01:13 +02:00
main.c wifi: p54: add missing parentheses in p54_flush() 2022-07-18 14:54:50 +03:00
p54.h p54: Replace zero-length array with flexible-array member 2020-03-23 19:01:13 +02:00
p54pci.c p54: avoid accessing the data mapped to streaming DMA 2020-09-01 12:33:48 +03:00
p54pci.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
p54spi.c wifi: p54: Fix an error handling path in p54spi_probe() 2022-07-18 14:51:13 +03:00
p54spi.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 336 2019-06-05 17:37:07 +02:00
p54spi_eeprom.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 336 2019-06-05 17:37:07 +02:00
p54usb.c intersil: fix wiki website url 2020-08-02 18:23:21 +03:00
p54usb.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
txrx.c mac80211: Use memset_after() to clear tx status 2021-11-26 11:54:03 +01:00