Browse Source

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
goprife@gmail.com 12 years ago
parent
commit
c0fadff061
1 changed files with 0 additions and 7 deletions
  1. 0 7
      components/dfs/src/dfs.c

+ 0 - 7
components/dfs/src/dfs.c

@@ -153,13 +153,6 @@ struct dfs_fd *fd_get(int fd)
     dfs_lock();
     dfs_lock();
     d = &fd_table[fd];
     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 */
     /* increase the reference count */
     d->ref_count ++;
     d->ref_count ++;
     dfs_unlock();
     dfs_unlock();