mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-14 16:53:22 +09:00
arch/powerpc/cpu/mpc8xxx/ddr/interactive.c: Fix GCC 4.6 build warning
Fix: interactive.c: In function 'fsl_ddr_interactive': interactive.c:1357:15: warning: variable 'len' set but not used [-Wunused-but-set-variable] Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
This commit is contained in:
parent
c18de0d7ae
commit
411e150375
@ -1354,7 +1354,6 @@ unsigned long long fsl_ddr_interactive(fsl_ddr_info_t *pinfo)
|
|||||||
{
|
{
|
||||||
unsigned long long ddrsize;
|
unsigned long long ddrsize;
|
||||||
const char *prompt = "FSL DDR>";
|
const char *prompt = "FSL DDR>";
|
||||||
unsigned int len;
|
|
||||||
char buffer[CONFIG_SYS_CBSIZE];
|
char buffer[CONFIG_SYS_CBSIZE];
|
||||||
char *argv[CONFIG_SYS_MAXARGS + 1]; /* NULL terminated */
|
char *argv[CONFIG_SYS_MAXARGS + 1]; /* NULL terminated */
|
||||||
int argc;
|
int argc;
|
||||||
@ -1389,7 +1388,7 @@ unsigned long long fsl_ddr_interactive(fsl_ddr_info_t *pinfo)
|
|||||||
* No need to worry for buffer overflow here in
|
* No need to worry for buffer overflow here in
|
||||||
* this function; readline() maxes out at CFG_CBSIZE
|
* this function; readline() maxes out at CFG_CBSIZE
|
||||||
*/
|
*/
|
||||||
len = readline_into_buffer(prompt, buffer);
|
readline_into_buffer(prompt, buffer);
|
||||||
argc = parse_line(buffer, argv);
|
argc = parse_line(buffer, argv);
|
||||||
if (argc == 0)
|
if (argc == 0)
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user