MIPS: Remove dead code in relocate_new_kernel
authorTiezhu Yang <yangtiezhu@loongson.cn>
Tue, 19 Sep 2023 11:05:01 +0000 (19:05 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Fri, 6 Oct 2023 08:13:51 +0000 (10:13 +0200)
There are two adjacent "b" instructions, the second one is unreachable,
it is dead code, just remove it.

Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/kernel/relocate_kernel.S

index f5b2ef9..8f0a726 100644 (file)
@@ -66,7 +66,6 @@ copy_word:
        LONG_ADDIU      s6, s6, -1
        beq             s6, zero, process_entry
        b               copy_word
-       b               process_entry
 
 done:
 #ifdef CONFIG_SMP