summaryrefslogtreecommitdiff
path: root/arch/s390/mm/fault.c
diff options
context:
space:
mode:
authorHeiko Carstens <hca@linux.ibm.com>2023-10-12 10:40:35 +0300
committerVasily Gorbik <gor@linux.ibm.com>2023-10-23 19:21:21 +0300
commit8dbc33dc81638cfcd8d3b4103ba315d76c3c2aff (patch)
tree898b643e2204ba42c6cdf7e2089588964c836d60 /arch/s390/mm/fault.c
parent760f6511096c5e37e9c9cf240d1ad525259bac86 (diff)
downloadlinux-8dbc33dc81638cfcd8d3b4103ba315d76c3c2aff.tar.xz
s390/mm,fault: have balanced braces, remove unnecessary blanks
Remove unnecessary braces and also blanks after casts. Add braces to have balanced braces where missing. Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'arch/s390/mm/fault.c')
-rw-r--r--arch/s390/mm/fault.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/s390/mm/fault.c b/arch/s390/mm/fault.c
index 2d629c1693e0..e7f5330dd363 100644
--- a/arch/s390/mm/fault.c
+++ b/arch/s390/mm/fault.c
@@ -91,9 +91,8 @@ static enum fault_type get_fault_type(struct pt_regs *regs)
if (trans_exc_code == 2)
return USER_FAULT;
/* Access register mode, not used in the kernel */
- if (trans_exc_code == 1) {
+ if (trans_exc_code == 1)
return USER_FAULT;
- }
/* Home space -> access via kernel ASCE */
return KERNEL_FAULT;
}
@@ -200,7 +199,7 @@ static void dump_fault_info(struct pt_regs *regs)
pr_cont("user ");
break;
case GMAP_FAULT:
- asce = ((struct gmap *) S390_lowcore.gmap)->asce;
+ asce = ((struct gmap *)S390_lowcore.gmap)->asce;
pr_cont("gmap ");
break;
case KERNEL_FAULT:
@@ -273,7 +272,7 @@ static noinline void do_low_address(struct pt_regs *regs)
*/
if (regs->psw.mask & PSW_MASK_PSTATE) {
/* Low-address protection hit in user mode: 'cannot happen' */
- die (regs, "Low-address protection");
+ die(regs, "Low-address protection");
}
do_no_context(regs, VM_FAULT_BADACCESS);
@@ -327,8 +326,9 @@ static noinline void do_fault_error(struct pt_regs *regs, vm_fault_t fault)
do_no_context(regs, fault);
else
do_sigbus(regs);
- } else
+ } else {
BUG();
+ }
break;
}
}
@@ -414,7 +414,7 @@ lock_mmap:
mmap_read_lock(mm);
gmap = NULL;
if (IS_ENABLED(CONFIG_PGSTE) && type == GMAP_FAULT) {
- gmap = (struct gmap *) S390_lowcore.gmap;
+ gmap = (struct gmap *)S390_lowcore.gmap;
current->thread.gmap_addr = address;
current->thread.gmap_write_flag = !!(flags & FAULT_FLAG_WRITE);
current->thread.gmap_int_code = regs->int_code & 0xffff;