Skip to content

Commit

Permalink
MIPS: Alchemy: fix xxs1500 build error
Browse files Browse the repository at this point in the history
This fixes:
alchemy/xxs1500/init.c: In function 'prom_init':
alchemy/xxs1500/init.c:57:17: error: ignoring return value of 'kstrtoul', declared with attribute warn_unused_result

Signed-off-by: Manuel Lauss <manuel.lauss@googlemail.com>
Cc: Linux-MIPS <linux-mips@linux-mips.org>
Patchwork: https://patchwork.linux-mips.org/patch/2340/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Manuel Lauss authored and Ralf Baechle committed May 10, 2011
1 parent 310f130 commit 780914c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions arch/mips/alchemy/xxs1500/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,9 @@ void __init prom_init(void)
prom_init_cmdline();

memsize_str = prom_getenv("memsize");
if (!memsize_str)
if (!memsize_str || strict_strtoul(memsize_str, 0, &memsize))
memsize = 0x04000000;
else
strict_strtoul(memsize_str, 0, &memsize);

add_memory_region(0, memsize, BOOT_MEM_RAM);
}

Expand Down

0 comments on commit 780914c

Please sign in to comment.