aboutsummaryrefslogtreecommitdiff
path: root/scripts/tracing/draw_functrace.py
diff options
context:
space:
mode:
authorPhillip Potter <[email protected]>2021-06-15 23:36:02 +0100
committerGreg Kroah-Hartman <[email protected]>2021-06-16 09:25:29 +0200
commit65df1d15d0734eea98f9084802a43d4f923ad65e (patch)
treed99b0705d9082e9ace7c6138b9a5146b4f70e2da /scripts/tracing/draw_functrace.py
parent0ef5dec44aea0083a77fb0120a9a7a86f203e61d (diff)
staging: rtl8188eu: use prefix decrement operator on trycnt variable
Modify trycnt condition in the do/while loop of rtw_hal_set_hwreg to use a prefix decrement operator instead of postfix. As an unsigned 8-bit integer, this value would actually be 255 after the end of the do/while loop, which is almost certainly not what was intended. It is more reasonable to assume a loop counter should be zero at the end of all loop iterations. Indeed, the line following the loop previously contained an if statement which assumed trycnt was 0, and therefore was never triggered. Signed-off-by: Phillip Potter <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/tracing/draw_functrace.py')
0 files changed, 0 insertions, 0 deletions