aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
diff options
context:
space:
mode:
authorLinus Torvalds <[email protected]>2024-12-16 18:26:53 +0000
committerLinus Torvalds <[email protected]>2024-12-23 19:18:35 +0000
commit03d23941bf03eecd8560e40238decb1515f264f6 (patch)
tree26e48a1f52486591de892e773089d4dc234e7928 /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
parentvsprintf: simplify number handling (diff)
downloadkernel-03d23941bf03eecd8560e40238decb1515f264f6.tar.gz
kernel-03d23941bf03eecd8560e40238decb1515f264f6.zip
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 <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
0 files changed, 0 insertions, 0 deletions