[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1375865136-21006-1-git-send-email-horms@verge.net.au>
Date: Wed, 7 Aug 2013 17:45:36 +0900
From: Simon Horman <horms@...ge.net.au>
To: Andrew Morton <akpm@...ux-foundation.org>,
"Eric W. Biederman" <ebiederm@...ssion.com>
Cc: kexec@...ts.infradead.org, linux-kernel@...r.kernel.org,
Zhang Yanfei <zhangyanfei@...fujitsu.com>,
Xishi Qiu <qiuxishi@...wei.com>,
Simon Horman <horms@...ge.net.au>
Subject: [PATCH] kexec: remove unnecessary return
From: Xishi Qiu <qiuxishi@...wei.com>
Code can not run here forever, so remove the unnecessary return.
Signed-off-by: Xishi Qiu <qiuxishi@...wei.com>
Suggested-by: Zhang Yanfei <zhangyanfei@...fujitsu.com>
Reviewed-by: Zhang Yanfei <zhangyanfei@...fujitsu.com>
Signed-off-by: Simon Horman <horms@...ge.net.au>
---
kernel/kexec.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
Andrew, could you consider picking up this patch?
diff --git a/kernel/kexec.c b/kernel/kexec.c
index 59f7b55..2a74f30 100644
--- a/kernel/kexec.c
+++ b/kernel/kexec.c
@@ -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);
}
/*
--
1.8.3.2
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists