9
0
Fork 0

fs: do not lookup global FILE * when the file is already available

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2014-10-08 13:59:28 +02:00
parent bfef6cd5f2
commit 59f91ec6c0
1 changed files with 1 additions and 1 deletions

View File

@ -251,7 +251,7 @@ static FILE *get_file(void)
static void put_file(FILE *f)
{
files[f->no].in_use = 0;
f->in_use = 0;
}
static int check_fd(int fd)