diff options
author | Paul Burton <paul.burton@mips.com> | 2018-08-31 21:49:20 +0300 |
---|---|---|
committer | Paul Burton <paul.burton@mips.com> | 2018-08-31 21:49:20 +0300 |
commit | 4988154211adfd688bf7f3f7eb1691608083a1f9 (patch) | |
tree | 6387cfc78cee7f6673b8612fce30b0675ac31627 /arch/mips/kernel/relocate.c | |
parent | 35d017947401d9f449a7e55e52506744e0c62577 (diff) | |
download | linux-4988154211adfd688bf7f3f7eb1691608083a1f9.tar.xz |
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.c | 2 |
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) { |