Commit 80c74f6a authored by Xishi Qiu's avatar Xishi Qiu Committed by Linus Torvalds

kexec: remove unnecessary return

Code can not run here forever, so remove the unnecessary return.
Signed-off-by: default avatarXishi Qiu <qiuxishi@huawei.com>
Suggested-by: default avatarZhang Yanfei <zhangyanfei@cn.fujitsu.com>
Reviewed-by: default avatarSimon Horman <horms@verge.net.au>
Reviewed-by: default avatarZhang Yanfei <zhangyanfei@cn.fujitsu.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 6b3c538f
......@@ -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);
}
/*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment