LoongArch: Remove dead code in relocate_new_kernel
authorTiezhu Yang <yangtiezhu@loongson.cn>
Wed, 20 Sep 2023 06:26:29 +0000 (14:26 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Wed, 20 Sep 2023 06:26:29 +0000 (14:26 +0800)
commitd0b933ae7a0e1b86b7af1462028ef0ca78144ef0
treeab4654600c2adbdd0d8497bb14c647114e2f8397
parent3563b477ddfe057ff1ef63636cacf198130276cb
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>
arch/loongarch/kernel/relocate_kernel.S