summaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/relocate.c
diff options
context:
space:
mode:
authorPaul Burton <paul.burton@mips.com>2018-08-31 11:49:20 -0700
committerPaul Burton <paul.burton@mips.com>2018-08-31 11:49:20 -0700
commit4988154211adfd688bf7f3f7eb1691608083a1f9 (patch)
tree6387cfc78cee7f6673b8612fce30b0675ac31627 /arch/mips/kernel/relocate.c
parent35d017947401d9f449a7e55e52506744e0c62577 (diff)
downloadlinux-4988154211adfd688bf7f3f7eb1691608083a1f9.tar.bz2
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/kernel/relocate.c')
-rw-r--r--arch/mips/kernel/relocate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/kernel/relocate.c b/arch/mips/kernel/relocate.c
index cbf4cc0b0b6c..3d80a51256de 100644
--- a/arch/mips/kernel/relocate.c
+++ b/arch/mips/kernel/relocate.c
@@ -146,7 +146,7 @@ int __init do_relocations(void *kbase_old, void *kbase_new, long offset)
break;
type = (*r >> 24) & 0xff;
- loc_orig = (void *)(kbase_old + ((*r & 0x00ffffff) << 2));
+ loc_orig = kbase_old + ((*r & 0x00ffffff) << 2);
loc_new = RELOCATED(loc_orig);
if (reloc_handlers_rel[type] == NULL) {