summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author[email protected] <[email protected]>2012-12-29 05:01:02 +0000
committer[email protected] <[email protected]>2012-12-29 05:01:02 +0000
commitc0fadff0616172db954a5ed0639a94630d6b7a61 (patch)
tree78a468122deff65a1dfcc9caa0ca36f173a7222a
parent5bc586d3996ffb0d111fcb61f1e679357c429047 (diff)
dfs_fd check code should not be in fd_get, which will cause open/mkdir failed.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2546 bbd45198-f89e-11dd-88c7-29a3b14d5316
-rw-r--r--components/dfs/src/dfs.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/components/dfs/src/dfs.c b/components/dfs/src/dfs.c
index fe0020b277..86ef809fbf 100644
--- a/components/dfs/src/dfs.c
+++ b/components/dfs/src/dfs.c
@@ -153,13 +153,6 @@ struct dfs_fd *fd_get(int fd)
dfs_lock();
d = &fd_table[fd];
- /* check dfs_fd valid or not */
- if (d->path == RT_NULL || d->fs == RT_NULL)
- {
- dfs_unlock();
- return RT_NULL;
- }
-
/* increase the reference count */
d->ref_count ++;
dfs_unlock();