Skip to content

Commit d0b933a

Browse files
seehearfeelchenhuacai
authored andcommitted
LoongArch: Remove dead code in relocate_new_kernel
The initial aim is to silence the following objtool warning: arch/loongarch/kernel/relocate_kernel.o: warning: objtool: relocate_new_kernel+0x74: unreachable instruction There are two adjacent "b" instructions, the second one is unreachable, it is dead code, just remove it. Co-developed-by: Jinyang He <hejinyang@loongson.cn> Signed-off-by: Jinyang He <hejinyang@loongson.cn> Co-developed-by: Youling Tang <tangyouling@loongson.cn> Signed-off-by: Youling Tang <tangyouling@loongson.cn> Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
1 parent 3563b47 commit d0b933a

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

arch/loongarch/kernel/relocate_kernel.S

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ copy_word:
7272
LONG_ADDI s5, s5, -1
7373
beqz s5, process_entry
7474
b copy_word
75-
b process_entry
7675

7776
done:
7877
ibar 0

0 commit comments

Comments
 (0)