aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorAlex Dewar <[email protected]>2020-10-28 15:54:30 +0200
committerKalle Valo <[email protected]>2020-11-06 08:35:41 +0200
commitdbeb101d28eb89a9138055b50d5ce7a9f7a663cf (patch)
tree24fa098073cb0829b1783e30c7e897da366b5804 /tools/perf/scripts/python/exported-sql-viewer.py
parent16f283f0a4bbc4cc84be574882706fa0d244186e (diff)
ath10k: sdio: remove redundant check in for loop
The for loop checks whether cur_section is NULL on every iteration, but we know it can never be NULL as there is another check towards the bottom of the loop body. Refactor to avoid this unnecessary check. Also, increment the variable i inline for clarity Addresses-Coverity: 1496984 ("Null pointer dereferences) Suggested-by: Saeed Mahameed <[email protected]> Signed-off-by: Alex Dewar <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions