[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190619113857.5053-1-jordan.lim@samsung.com>
Date: Wed, 19 Jun 2019 20:38:57 +0900
From: jinho lim <jordan.lim@...sung.com>
To: will.deacon@....com
Cc: mark.rutland@....com, ebiederm@...ssion.com, marc.zyngier@....com,
anshuman.khandual@....com, andreyknvl@...gle.com,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
seroto7@...il.com, jinho lim <jordan.lim@...sung.com>
Subject: [PATCH] arm64: remove useless condition
dump_instr function checks user_mode internally.
Signed-off-by: jinho lim <jordan.lim@...sung.com>
---
arch/arm64/kernel/traps.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/arch/arm64/kernel/traps.c b/arch/arm64/kernel/traps.c
index ccc13b45d9b1..694e78b950ca 100644
--- a/arch/arm64/kernel/traps.c
+++ b/arch/arm64/kernel/traps.c
@@ -182,8 +182,7 @@ static int __die(const char *str, int err, struct pt_regs *regs)
print_modules();
show_regs(regs);
- if (!user_mode(regs))
- dump_instr(KERN_EMERG, regs);
+ dump_instr(KERN_EMERG, regs);
return ret;
}
--
2.13.0
Powered by blists - more mailing lists