diff options
author | Chris Metcalf <cmetcalf@tilera.com> | 2011-02-28 21:14:19 +0100 |
---|---|---|
committer | Chris Metcalf <cmetcalf@tilera.com> | 2011-03-01 22:20:36 +0100 |
commit | ed54d38f0852b2e685393ddae2405d59ef44bed4 (patch) | |
tree | 17b70bfc11ed1db51ea110e8e8691162beddcee7 /arch/tile | |
parent | arch/tile: avoid a simulator warning during bootup (diff) | |
download | linux-ed54d38f0852b2e685393ddae2405d59ef44bed4.tar.xz linux-ed54d38f0852b2e685393ddae2405d59ef44bed4.zip |
arch/tile: fix reversed test of strict_strtol() return value
This fixes the "initfree" boot argument.
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Diffstat (limited to 'arch/tile')
-rw-r--r-- | arch/tile/mm/init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/tile/mm/init.c b/arch/tile/mm/init.c index 9a62479aafb4..2ef9ce5102bc 100644 --- a/arch/tile/mm/init.c +++ b/arch/tile/mm/init.c @@ -1000,7 +1000,7 @@ static long __write_once initfree = 1; static int __init set_initfree(char *str) { long val; - if (strict_strtol(str, 0, &val)) { + if (strict_strtol(str, 0, &val) == 0) { initfree = val; pr_info("initfree: %s free init pages\n", initfree ? "will" : "won't"); |