summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2024-12-16 21:26:53 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2024-12-23 22:18:35 +0300
commit03d23941bf03eecd8560e40238decb1515f264f6 (patch)
tree26e48a1f52486591de892e773089d4dc234e7928 /tools/perf/scripts/python/task-analyzer.py
parentbe503db4d0f217bb1bb4b3e3639402d386378d1b (diff)
downloadlinux-03d23941bf03eecd8560e40238decb1515f264f6.tar.xz
vsprintf: avoid nested switch statement on same variable
Now that we have simplified the number format types, the top-level switch table can easily just handle all the remaining cases, and we don't need to have a case statement with a conditional on the same expression as the switch statement. We do want to fall through to the common 'number()' case, but that's trivially done by making the other case statements use 'continue' instead of 'break'. They are just looping back to the top, after all. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions