Skip to content

Commit fb0e5f2

Browse files
morimotoRussell King (Oracle)
authored andcommitted
ARM: 9456/1: mm: fault: use string choices helper
We can use string choices helper, let's use it. It makes one line code. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
1 parent 2a29592 commit fb0e5f2

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

arch/arm/mm/fault.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,7 @@ static void die_kernel_fault(const char *msg, struct mm_struct *mm,
135135
bust_spinlocks(1);
136136
pr_alert("8<--- cut here ---\n");
137137
pr_alert("Unable to handle kernel %s at virtual address %08lx when %s\n",
138-
msg, addr, fsr & FSR_LNX_PF ? "execute" :
139-
fsr & FSR_WRITE ? "write" : "read");
138+
msg, addr, fsr & FSR_LNX_PF ? "execute" : str_write_read(fsr & FSR_WRITE));
140139

141140
show_pte(KERN_ALERT, mm, addr);
142141
die("Oops", regs, fsr);

0 commit comments

Comments
 (0)