aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/libxed.py
diff options
context:
space:
mode:
authorHeiko Carstens <[email protected]>2024-10-22 14:06:00 +0200
committerHeiko Carstens <[email protected]>2024-10-29 11:49:19 +0100
commita12d622ad541b5db0cda36cc7f3ac89b4f9e5a2c (patch)
tree87f80978ba483793970b74a5401d1ef0e5539481 /tools/perf/scripts/python/libxed.py
parentf76901d16008862035265037905fd84364c3d0ac (diff)
s390/mm: Get rid of fault type switch statements
With GMAP_FAULT fault type gone, there are only KERNEL_FAULT and USER_FAULT fault types left. Therefore there is no need for any fault type switch statements left. Rename get_fault_type() into is_kernel_fault() and let it return a boolean value. Change all switch statements to if statements. This removes quite a bit of code. Reviewed-by: Alexander Gordeev <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Heiko Carstens <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions