diff options
author | Rustam Subkhankulov <[email protected]> | 2022-07-14 16:48:31 +0300 |
---|---|---|
committer | Kalle Valo <[email protected]> | 2022-07-18 14:54:50 +0300 |
commit | bcfd9d7f6840b06d5988c7141127795cf405805e (patch) | |
tree | b04cc4669b41a1963778e2d1466d47f4d8da9b69 /tools/perf/scripts/python/net_dropmonitor.py | |
parent | 68204a696505fe97150d498f32e38c2a926c540f (diff) |
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 <[email protected]>
Fixes: 0d4171e2153b ("p54: implement flush callback")
Acked-by: Christian Lamparter <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions