projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
401586e
)
arch/tile: fix reversed test of strict_strtol() return value
author
Chris Metcalf
<cmetcalf@tilera.com>
Mon, 28 Feb 2011 20:14:19 +0000
(15:14 -0500)
committer
Chris Metcalf
<cmetcalf@tilera.com>
Tue, 1 Mar 2011 21:20:36 +0000
(16:20 -0500)
This fixes the "initfree" boot argument.
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
arch/tile/mm/init.c
patch
|
blob
|
history
diff --git
a/arch/tile/mm/init.c
b/arch/tile/mm/init.c
index 9a62479aafb4e7751b52e88baf4561e92cdeae51..2ef9ce5102bcdd16beb104693823cec63d9b4a35 100644
(file)
--- 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");