Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ed54d38f authored by Chris Metcalf's avatar Chris Metcalf
Browse files

arch/tile: fix reversed test of strict_strtol() return value



This fixes the "initfree" boot argument.

Signed-off-by: default avatarChris Metcalf <cmetcalf@tilera.com>
parent 401586e9
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1000,7 +1000,7 @@ static long __write_once initfree = 1;
static int __init set_initfree(char *str)
static int __init set_initfree(char *str)
{
{
	long val;
	long val;
	if (strict_strtol(str, 0, &val)) {
	if (strict_strtol(str, 0, &val) == 0) {
		initfree = val;
		initfree = val;
		pr_info("initfree: %s free init pages\n",
		pr_info("initfree: %s free init pages\n",
			initfree ? "will" : "won't");
			initfree ? "will" : "won't");