From 8dbc33dc81638cfcd8d3b4103ba315d76c3c2aff Mon Sep 17 00:00:00 2001 From: Heiko Carstens Date: Thu, 12 Oct 2023 09:40:35 +0200 Subject: [PATCH] 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 Signed-off-by: Heiko Carstens Signed-off-by: Vasily Gorbik --- arch/s390/mm/fault.c | 12 ++++++------ 1 file 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; -- 2.25.1