mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-17 12:41:32 +00:00
fs: clean up around fs_type
fs_ls(), fs_mkdir() and fs_unlink() sets fs_type to FS_TYPE_ANY explicitly, but it is redundant as they call fs_close(). So just remove those lines. Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
parent
e4bad9f9f0
commit
185aed7855
1 changed files with 0 additions and 3 deletions
3
fs/fs.c
3
fs/fs.c
|
@ -413,7 +413,6 @@ int fs_ls(const char *dirname)
|
|||
|
||||
ret = info->ls(dirname);
|
||||
|
||||
fs_type = FS_TYPE_ANY;
|
||||
fs_close();
|
||||
|
||||
return ret;
|
||||
|
@ -597,7 +596,6 @@ int fs_unlink(const char *filename)
|
|||
|
||||
ret = info->unlink(filename);
|
||||
|
||||
fs_type = FS_TYPE_ANY;
|
||||
fs_close();
|
||||
|
||||
return ret;
|
||||
|
@ -611,7 +609,6 @@ int fs_mkdir(const char *dirname)
|
|||
|
||||
ret = info->mkdir(dirname);
|
||||
|
||||
fs_type = FS_TYPE_ANY;
|
||||
fs_close();
|
||||
|
||||
return ret;
|
||||
|
|
Loading…
Add table
Reference in a new issue