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:
parent
5bc586d399
commit
c0fadff061
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue