9
0
Fork 0

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:
Sascha Hauer 2013-11-12 09:40:42 +01:00
parent 86e7032568
commit 6058a2273c
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}