Linux MIPS Architecture development
 help / color / mirror / Atom feed
* [PATCH] MIPS: Remove no-op cast in show_regs()
@ 2018-06-22 18:07 Paul Burton
  2018-06-22 18:07 ` Paul Burton
  2018-07-02 15:20 ` Ralf Baechle
  0 siblings, 2 replies; 5+ messages in thread
From: Paul Burton @ 2018-06-22 18:07 UTC (permalink / raw)
  To: linux-mips; +Cc: Paul Burton, James Hogan, Ralf Baechle

In show_regs() we have a regs argument of type struct pt_regs *, and we
explicitly cast it to that same type as part of calling __show_regs().

Casting regs to the same type that it is declared as does nothing at
all, so remove the useless cast.

Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: James Hogan <jhogan@kernel.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-mips@linux-mips.org
---
 arch/mips/kernel/traps.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c
index 8d505a21396e..6be2337ca224 100644
--- a/arch/mips/kernel/traps.c
+++ b/arch/mips/kernel/traps.c
@@ -350,7 +350,7 @@ static void __show_regs(const struct pt_regs *regs)
  */
 void show_regs(struct pt_regs *regs)
 {
-	__show_regs((struct pt_regs *)regs);
+	__show_regs(regs);
 	dump_stack();
 }
 
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-07-02 21:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-22 18:07 [PATCH] MIPS: Remove no-op cast in show_regs() Paul Burton
2018-06-22 18:07 ` Paul Burton
2018-07-02 15:20 ` Ralf Baechle
2018-07-02 21:00   ` Julia Lawall
2018-07-02 21:39   ` Paul Burton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox