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/
Šī revīzija ir iekļauta:
@@ -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) {
|
||||
|
Atsaukties uz šo jaunā problēmā
Block a user