s390/mm,fault: replace WARN_ON_ONCE() with unreachable()
authorHeiko Carstens <hca@linux.ibm.com>
Thu, 12 Oct 2023 07:40:39 +0000 (09:40 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Mon, 23 Oct 2023 16:21:22 +0000 (18:21 +0200)
commitae626f686351d220d5eab746dc3a19e90bb1de9a
tree17b123353d950fb313b2b061d3d511f1bd9d9e9a
parent5c845de331d980d90c6d18028942812fa491fe69
s390/mm,fault: replace WARN_ON_ONCE() with unreachable()

do_secure_storage_access() contains a switch statements which handles
all possible return values from get_fault_type(). Therefore remove the
pointless default case error handling and replace it with unreachable().

Reviewed-by: Janosch Frank <frankja@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/mm/fault.c