diff options
author | Paul Burton <paul.burton@mips.com> | 2018-08-31 11:49:20 -0700 |
---|---|---|
committer | Paul Burton <paul.burton@mips.com> | 2018-08-31 11:49:20 -0700 |
commit | 4988154211adfd688bf7f3f7eb1691608083a1f9 (patch) | |
tree | 6387cfc78cee7f6673b8612fce30b0675ac31627 /arch/mips/sgi-ip22/ip28-berr.c | |
parent | 35d017947401d9f449a7e55e52506744e0c62577 (diff) | |
download | linux-4988154211adfd688bf7f3f7eb1691608083a1f9.tar.gz linux-4988154211adfd688bf7f3f7eb1691608083a1f9.tar.bz2 linux-4988154211adfd688bf7f3f7eb1691608083a1f9.zip |
MIPS: Remove no-op/identity casts
Clean up instances of casts to the type that a value already has, since
they are effectively no-ops and only serve to complicate the code.
This is the result of the following semantic patch:
@identitycast@
type T;
T *A;
@@
- (T *)(A)
+ A
Signed-off-by: Paul Burton <paul.burton@mips.com>
Patchwork: https://patchwork.linux-mips.org/patch/19599/
Diffstat (limited to 'arch/mips/sgi-ip22/ip28-berr.c')
-rw-r--r-- | arch/mips/sgi-ip22/ip28-berr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/sgi-ip22/ip28-berr.c b/arch/mips/sgi-ip22/ip28-berr.c index 2ed8e4990b7a..082541d33161 100644 --- a/arch/mips/sgi-ip22/ip28-berr.c +++ b/arch/mips/sgi-ip22/ip28-berr.c @@ -464,7 +464,7 @@ void ip22_be_interrupt(int irq) die_if_kernel("Oops", regs); force_sig(SIGBUS, current); } else if (debug_be_interrupt) - show_regs((struct pt_regs *)regs); + show_regs(regs); } static int ip28_be_handler(struct pt_regs *regs, int is_fixup) |