summaryrefslogtreecommitdiff
path: root/scripts/lib/kdoc/kdoc_files.py
diff options
context:
space:
mode:
authorHeiko Carstens <hca@linux.ibm.com>2024-10-22 14:06:00 +0200
committerHeiko Carstens <hca@linux.ibm.com>2024-10-29 11:49:19 +0100
commita12d622ad541b5db0cda36cc7f3ac89b4f9e5a2c (patch)
tree87f80978ba483793970b74a5401d1ef0e5539481 /scripts/lib/kdoc/kdoc_files.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 <agordeev@linux.ibm.com> Link: https://lore.kernel.org/r/20241022120601.167009-11-imbrenda@linux.ibm.com Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions