]> Git Repo - J-linux.git/commitdiff
x86/module: remove unused code in __apply_relocate_add
authorSong Liu <[email protected]>
Wed, 25 Jan 2023 18:54:00 +0000 (10:54 -0800)
committerPetr Mladek <[email protected]>
Fri, 3 Feb 2023 10:27:23 +0000 (11:27 +0100)
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]
arch/x86/kernel/module.c

index c8a25aed604d6f953d646d44aec2d082a4e00bef..0a09d816794bdc012b66a04e641d79d7de5d11b1 100644 (file)
@@ -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)
This page took 0.051708 seconds and 4 git commands to generate.