summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2014-10-08 13:59:28 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2014-10-08 16:08:03 +0200
commit59f91ec6c0d448acc041e33d48be1c66214da317 (patch)
tree8ab4057b8f9a2e36a15dcc2d5658091f858b5efe /fs
parentbfef6cd5f2ff1720543839dea9bcc7ec340ba8f5 (diff)
downloadbarebox-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')
-rw-r--r--fs/fs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fs.c b/fs/fs.c
index 014a36adfe..04b6408802 100644
--- a/fs/fs.c
+++ b/fs/fs.c
@@ -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)