kexec: remove unnecessary return
Subsystems (3)
PATCH v2 1/1 kexec: remove unnecessary return
Code can not run here forever, so remove the unnecessary return.
Signed-off-by Xishi Qiu <[email protected]>
Suggested-by Zhang Yanfei <[email protected]>
--- kernel/kexec.c | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-)
kernel/kexec.c +1 -4
@@ -1474,11 +1474,8 @@ static int __init __parse_crashkernel(char *cmdline,if (first_colon && (!first_space || first_colon < first_space))return parse_crashkernel_mem (ck_cmdline, system_ram, crash_size, crash_base); -else -return parse_crashkernel_simple (ck_cmdline, crash_size, - crash_base); -return 0 ; +return parse_crashkernel_simple (ck_cmdline, crash_size, crash_base); }/*
Signature · 7 lines
1.7.1 _______________________________________________ kexec mailing list [email protected] http://lists.infradead.org/mailman/listinfo/kexec
Quoted 4 lines · Xishi Qiu
Code can not run here forever, so remove the unnecessary return.
Signed-off-by Xishi Qiu <[email protected]>Suggested-by Zhang Yanfei <[email protected]>
Reviewed-by Simon Horman <[email protected]>
Quoted 30 lines
--- kernel/kexec.c | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-)kernel/kexec.c +1
-4@@ -1474,11 +1474,8 @@ static int __init __parse_crashkernel(char *cmdline,if (first_colon && (!first_space || first_colon < first_space))return parse_crashkernel_mem (ck_cmdline, system_ram, crash_size, crash_base); -else -return parse_crashkernel_simple (ck_cmdline, crash_size, - crash_base); -return 0 ; +return parse_crashkernel_simple (ck_cmdline, crash_size, crash_base); }/* Signature · 7 lines
1.7.1 _______________________________________________ kexec mailing list [email protected] http://lists.infradead.org/mailman/listinfo/kexec
Quoted 4 lines · Xishi Qiu
Code can not run here forever, so remove the unnecessary return.
Signed-off-by Xishi Qiu <[email protected]>Suggested-by Zhang Yanfei <[email protected]>
Reviewed-by Zhang Yanfei <[email protected]>
Quoted 22 lines
--- kernel/kexec.c | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-)kernel/kexec.c +1
-4@@ -1474,11 +1474,8 @@ static int __init __parse_crashkernel(char *cmdline,if (first_colon && (!first_space || first_colon < first_space))return parse_crashkernel_mem (ck_cmdline, system_ram, crash_size, crash_base); -else -return parse_crashkernel_simple (ck_cmdline, crash_size, - crash_base); -return 0 ; +return parse_crashkernel_simple (ck_cmdline, crash_size, crash_base); }/*
Signature · 2 lines
Thanks. Zhang Yanfei