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
This commit is contained in:
goprife@gmail.com 2012-12-29 05:01:02 +00:00
parent 5bc586d399
commit c0fadff061
1 changed files with 0 additions and 7 deletions

View File

@ -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();