Skip to content

Commit bbb9336

Browse files
liu-song-6pmladek
authored andcommitted
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 <jpoimboe@redhat.com> Signed-off-by: Song Liu <song@kernel.org> Reviewed-by: Petr Mladek <pmladek@suse.com> Acked-by: Josh Poimboeuf <jpoimboe@kernel.org> Reviewed-by: Joe Lawrence <joe.lawrence@redhat.com> Signed-off-by: Petr Mladek <pmladek@suse.com> Link: https://lore.kernel.org/r/20230125185401.279042-1-song@kernel.org
1 parent e1a1cce commit bbb9336

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

arch/x86/kernel/module.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,6 @@ static int __apply_relocate_add(Elf64_Shdr *sechdrs,
187187
goto invalid_relocation;
188188
val -= (u64)loc;
189189
write(loc, &val, 4);
190-
#if 0
191-
if ((s64)val != *(s32 *)loc)
192-
goto overflow;
193-
#endif
194190
break;
195191
case R_X86_64_PC64:
196192
if (*(u64 *)loc != 0)

0 commit comments

Comments
 (0)