fs: Simplify fd to FILE lookup code
Avoid a bit of repeating code by merging checking fd for correctness
and fd to FILE lookup into a single routine and converting the rest of
the code to use it.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 27099b5 commit e48c54902cc81652280cb50c4ddb8bad1cb6632f
@Andrey Smirnov Andrey Smirnov authored on 26 Feb 2019
Sascha Hauer committed on 27 Feb 2019
Showing 1 changed file
View
fs/fs.c