From c0fadff0616172db954a5ed0639a94630d6b7a61 Mon Sep 17 00:00:00 2001 From: "goprife@gmail.com" Date: Sat, 29 Dec 2012 05:01:02 +0000 Subject: [PATCH] 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 --- components/dfs/src/dfs.c | 7 ------- 1 file changed, 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(); -- GitLab