diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2014-10-08 13:59:28 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-10-08 16:08:03 +0200 |
commit | 59f91ec6c0d448acc041e33d48be1c66214da317 (patch) | |
tree | 8ab4057b8f9a2e36a15dcc2d5658091f858b5efe /fs/fs.c | |
parent | bfef6cd5f2ff1720543839dea9bcc7ec340ba8f5 (diff) | |
download | barebox-59f91ec6c0d448acc041e33d48be1c66214da317.tar.gz barebox-59f91ec6c0d448acc041e33d48be1c66214da317.tar.xz |
fs: do not lookup global FILE * when the file is already available
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'fs/fs.c')
-rw-r--r-- | fs/fs.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |