diff options
| author | Bernard Xiong <[email protected]> | 2019-01-25 03:16:21 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-01-25 03:16:21 +0800 |
| commit | 71da3392fcfd68e07525ef13f1399b9cc18e13fa (patch) | |
| tree | e84326701269839c94115c1093e8afe6c80ff9c4 /components | |
| parent | 806eb49f710fa73fb67af60242de5b0617d8e025 (diff) | |
| parent | 3b4a9f51c70ce961a7a575614b3824c89f47bc56 (diff) | |
Merge pull request #2263 from RT-Thread/fix_fdopen
[DFS] Remove opened file check
Diffstat (limited to 'components')
| -rw-r--r-- | components/dfs/src/dfs_file.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/components/dfs/src/dfs_file.c b/components/dfs/src/dfs_file.c index 4505667738..b924b00d3f 100644 --- a/components/dfs/src/dfs_file.c +++ b/components/dfs/src/dfs_file.c @@ -8,6 +8,7 @@ * 2005-02-22 Bernard The first version. * 2011-12-08 Bernard Merges rename patch from iamcacy. * 2015-05-27 Bernard Fix the fd clear issue. + * 2019-01-24 Bernard Remove file repeatedly open check. */ #include <dfs.h> @@ -48,14 +49,6 @@ int dfs_file_open(struct dfs_fd *fd, const char *path, int flags) LOG_D("open file:%s", fullpath); - /* Check whether file is already open */ - if (fd_is_open(fullpath) == 0) - { - rt_free(fullpath); /* release path */ - - return -EBUSY; - } - /* find filesystem */ fs = dfs_filesystem_lookup(fullpath); if (fs == NULL) |
