summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorprife <[email protected]>2013-12-21 10:58:52 +0800
committerprife <[email protected]>2013-12-21 10:58:52 +0800
commit27112267e968419c1d2ab47ea2456eb3d9b54598 (patch)
treec5c60e8501cac36530122b95950dde925ff2e66a /components
parentca270a46678b8de14fc23b2851ef84d265f29268 (diff)
dfs: rename varialbe name in dfs_filesystem_lookup
empty is confused in dfs_filesystem_lookup.
Diffstat (limited to 'components')
-rw-r--r--components/dfs/src/dfs_fs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/dfs/src/dfs_fs.c b/components/dfs/src/dfs_fs.c
index 7e1dbd3584..770fd71cfb 100644
--- a/components/dfs/src/dfs_fs.c
+++ b/components/dfs/src/dfs_fs.c
@@ -80,7 +80,7 @@ int dfs_register(const struct dfs_filesystem_operation *ops)
struct dfs_filesystem *dfs_filesystem_lookup(const char *path)
{
struct dfs_filesystem *iter;
- struct dfs_filesystem *empty = RT_NULL;
+ struct dfs_filesystem *fs = RT_NULL;
rt_uint32_t fspath, prefixlen;
prefixlen = 0;
@@ -104,13 +104,13 @@ struct dfs_filesystem *dfs_filesystem_lookup(const char *path)
if (fspath > 1 && (strlen(path) > fspath) && (path[fspath] != '/'))
continue;
- empty = iter;
+ fs = iter;
prefixlen = fspath;
}
dfs_unlock();
- return empty;
+ return fs;
}
/**