summaryrefslogtreecommitdiffstats
path: root/arch/mips/loongson/common/env.c
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2011-01-11 05:10:08 +0100
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2011-01-11 05:10:08 +0100
commiteed0ba0b4ab2d1668588219a8efa81bf8636a12d (patch)
treef5aa3c732e7830a1b24e6071f8bed0f799881187 /arch/mips/loongson/common/env.c
parentpowerpc/powermac: Make auto-loading of therm_pm72 possible (diff)
parentpowerpc/83xx: add mpc8308_p1m DMA controller device-tree node (diff)
downloadlinux-eed0ba0b4ab2d1668588219a8efa81bf8636a12d.tar.xz
linux-eed0ba0b4ab2d1668588219a8efa81bf8636a12d.zip
Merge remote branch 'gcl/next' into next
Diffstat (limited to 'arch/mips/loongson/common/env.c')
-rw-r--r--arch/mips/loongson/common/env.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/loongson/common/env.c b/arch/mips/loongson/common/env.c
index ae4cff97a56c..11b193f848f8 100644
--- a/arch/mips/loongson/common/env.c
+++ b/arch/mips/loongson/common/env.c
@@ -29,9 +29,9 @@ unsigned long memsize, highmemsize;
#define parse_even_earlier(res, option, p) \
do { \
+ int ret; \
if (strncmp(option, (char *)p, strlen(option)) == 0) \
- strict_strtol((char *)p + strlen(option"="), \
- 10, &res); \
+ ret = strict_strtol((char *)p + strlen(option"="), 10, &res); \
} while (0)
void __init prom_init_env(void)