MIPS: Remove no-op/identity casts
authorPaul Burton <paul.burton@mips.com>
Fri, 31 Aug 2018 18:49:20 +0000 (11:49 -0700)
committerPaul Burton <paul.burton@mips.com>
Fri, 31 Aug 2018 18:49:20 +0000 (11:49 -0700)
commit4988154211adfd688bf7f3f7eb1691608083a1f9
tree6387cfc78cee7f6673b8612fce30b0675ac31627
parent35d017947401d9f449a7e55e52506744e0c62577
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/
arch/mips/kernel/relocate.c
arch/mips/kernel/traps.c
arch/mips/loongson64/loongson-3/smp.c
arch/mips/pmcs-msp71xx/msp_usb.c
arch/mips/sgi-ip22/ip28-berr.c