Commit bbb93362 authored by Song Liu's avatar Song Liu Committed by Petr Mladek
Browse files

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: default avatarJosh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: default avatarSong Liu <song@kernel.org>
Reviewed-by: default avatarPetr Mladek <pmladek@suse.com>
Acked-by: default avatarJosh Poimboeuf <jpoimboe@kernel.org>
Reviewed-by: default avatarJoe Lawrence <joe.lawrence@redhat.com>
Signed-off-by: default avatarPetr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20230125185401.279042-1-song@kernel.org
parent e1a1ccef
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -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)