readline: remove unused variable
'rc' is never set to anything else than 0, so drop it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
86e7032568
commit
6058a2273c
|
@ -191,7 +191,6 @@ int readline(const char *prompt, char *buf, int len)
|
|||
unsigned wlen;
|
||||
int ichar;
|
||||
int insert = 1;
|
||||
int rc = 0;
|
||||
#ifdef CONFIG_AUTO_COMPLETE
|
||||
char tmp;
|
||||
int reprint, i;
|
||||
|
@ -351,5 +350,5 @@ int readline(const char *prompt, char *buf, int len)
|
|||
cread_add_to_hist(buf);
|
||||
hist_cur = hist_add_idx;
|
||||
|
||||
return rc < 0 ? rc : len;
|
||||
return len;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue