mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
kgdb: remove unreachable return in kgdb_reenter_check()
Remove the dead 'return 1' after panic() in kgdb_reenter_check(). panic() is marked __noreturn so the subsequent return statement can never execute. Signed-off-by: Naveen Kumar Chaudhary <naveen.osdev@gmail.com> Reviewed-by: Douglas Anderson <dianders@chromium.org> Link: https://lore.kernel.org/r/uddjzmr3oqbf2ly5iyx4ajomreub7firbrzwinhj35ppix6jlo@tt6ejkxmk4tj Signed-off-by: Daniel Thompson <daniel@riscstar.com>
This commit is contained in:
parent
2a05207458
commit
1865f1ea3b
|
|
@ -555,8 +555,6 @@ static int kgdb_reenter_check(struct kgdb_state *ks)
|
|||
#endif
|
||||
dump_stack();
|
||||
panic("Recursive entry to debugger");
|
||||
|
||||
return 1;
|
||||
}
|
||||
NOKPROBE_SYMBOL(kgdb_reenter_check);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user