]> git.ipfire.org Git - thirdparty/linux.git/commit
s390/traps: Cleanup get_user() handling in illegal_op()
authorHeiko Carstens <hca@linux.ibm.com>
Wed, 26 Feb 2025 10:03:04 +0000 (11:03 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Tue, 4 Mar 2025 16:34:03 +0000 (17:34 +0100)
commite9df614dad8ebe43ed15bef3b18789319a73e0f6
tree69bd1b427f84dae79cd0e437f525670d785eef49
parent9ef496ddf95e0410bf3003cf2415485879e536f4
s390/traps: Cleanup get_user() handling in illegal_op()

The usage of get_user() in illegal_op() is quite unusual. Make the code
more readable and get rid of unnecessary casts. The generated code is
identical before/after this change.

Reviewed-by: Sven Schnelle <svens@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/kernel/traps.c