diff options
author | AKASHI Takahiro <takahiro.akashi@linaro.org> | 2019-10-07 14:59:36 +0900 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2019-10-17 19:19:56 +0200 |
commit | 185aed7855573214794b13f20e597d36c6dc5760 (patch) | |
tree | be9563ce41b02683c57d736856221846ad36563f /fs | |
parent | e4bad9f9f0532d2980eed21be07c8799a0f4b818 (diff) | |
download | u-boot-185aed7855573214794b13f20e597d36c6dc5760.tar.gz u-boot-185aed7855573214794b13f20e597d36c6dc5760.tar.bz2 u-boot-185aed7855573214794b13f20e597d36c6dc5760.zip |
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/fs.c | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -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; |