ar71xx: fix a compiler warning
SVN-Revision: 29110
This commit is contained in:
parent
5ae0fd802c
commit
12dae96097
1 changed files with 4 additions and 4 deletions
|
@ -33,13 +33,13 @@ static inline int is_valid_ram_addr(void *addr)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static char ar71xx_cmdline_buf[COMMAND_LINE_SIZE] __initdata;
|
||||||
static void __init ar71xx_prom_append_cmdline(const char *name,
|
static void __init ar71xx_prom_append_cmdline(const char *name,
|
||||||
const char *value)
|
const char *value)
|
||||||
{
|
{
|
||||||
char buf[COMMAND_LINE_SIZE];
|
snprintf(ar71xx_cmdline_buf, sizeof(ar71xx_cmdline_buf),
|
||||||
|
" %s=%s", name, value);
|
||||||
snprintf(buf, sizeof(buf), " %s=%s", name, value);
|
strlcat(arcs_cmdline, ar71xx_cmdline_buf, sizeof(arcs_cmdline));
|
||||||
strlcat(arcs_cmdline, buf, sizeof(arcs_cmdline));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static const char * __init ar71xx_prom_find_env(char **envp, const char *name)
|
static const char * __init ar71xx_prom_find_env(char **envp, const char *name)
|
||||||
|
|
Loading…
Reference in a new issue