mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-18 06:58:54 +00:00
Fix compiler warning
main.c: In function 'readline_into_buffer': main.c:927: warning: unused variable 'p_buf' Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
This commit is contained in:
parent
422b1a0160
commit
0ec595243d
1 changed files with 1 additions and 1 deletions
|
@ -924,7 +924,6 @@ int readline (const char *const prompt)
|
|||
int readline_into_buffer (const char *const prompt, char * buffer)
|
||||
{
|
||||
char *p = buffer;
|
||||
char * p_buf = p;
|
||||
#ifdef CONFIG_CMDLINE_EDITING
|
||||
unsigned int len=MAX_CMDBUF_SIZE;
|
||||
int rc;
|
||||
|
@ -940,6 +939,7 @@ int readline_into_buffer (const char *const prompt, char * buffer)
|
|||
rc = cread_line(prompt, p, &len);
|
||||
return rc < 0 ? rc : len;
|
||||
#else
|
||||
char * p_buf = p;
|
||||
int n = 0; /* buffer index */
|
||||
int plen = 0; /* prompt length */
|
||||
int col; /* output column cnt */
|
||||
|
|
Loading…
Add table
Reference in a new issue