提交 27112267 编写于 作者: P prife

dfs: rename varialbe name in dfs_filesystem_lookup

empty is confused in dfs_filesystem_lookup.
上级 ca270a46
......@@ -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;
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册