diff options
| author | Song Liu <[email protected]> | 2023-01-25 10:54:00 -0800 |
|---|---|---|
| committer | Petr Mladek <[email protected]> | 2023-02-03 11:27:23 +0100 |
| commit | bbb93362a4452282ba51067dfb609476380518dc (patch) | |
| tree | 88a42bae7a9cac1161589332fa7f31259840e27a | |
| parent | e1a1ccef7a4f3a3058cd6c039a56b4c2c98479f1 (diff) | |
x86/module: remove unused code in __apply_relocate_add
This "#if 0" block has been untouched for many years. Remove it to clean
up the code.
Suggested-by: Josh Poimboeuf <[email protected]>
Signed-off-by: Song Liu <[email protected]>
Reviewed-by: Petr Mladek <[email protected]>
Acked-by: Josh Poimboeuf <[email protected]>
Reviewed-by: Joe Lawrence <[email protected]>
Signed-off-by: Petr Mladek <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
| -rw-r--r-- | arch/x86/kernel/module.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/x86/kernel/module.c b/arch/x86/kernel/module.c index c8a25aed604d..0a09d816794b 100644 --- a/arch/x86/kernel/module.c +++ b/arch/x86/kernel/module.c @@ -187,10 +187,6 @@ static int __apply_relocate_add(Elf64_Shdr *sechdrs, goto invalid_relocation; val -= (u64)loc; write(loc, &val, 4); -#if 0 - if ((s64)val != *(s32 *)loc) - goto overflow; -#endif break; case R_X86_64_PC64: if (*(u64 *)loc != 0) |