mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-22 16:49:59 +08:00
dfs: rename varialbe name in dfs_filesystem_lookup
empty is confused in dfs_filesystem_lookup.
This commit is contained in:
parent
ca270a4667
commit
27112267e9
@ -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 *dfs_filesystem_lookup(const char *path)
|
||||||
{
|
{
|
||||||
struct dfs_filesystem *iter;
|
struct dfs_filesystem *iter;
|
||||||
struct dfs_filesystem *empty = RT_NULL;
|
struct dfs_filesystem *fs = RT_NULL;
|
||||||
rt_uint32_t fspath, prefixlen;
|
rt_uint32_t fspath, prefixlen;
|
||||||
|
|
||||||
prefixlen = 0;
|
prefixlen = 0;
|
||||||
@ -104,13 +104,13 @@ struct dfs_filesystem *dfs_filesystem_lookup(const char *path)
|
|||||||
if (fspath > 1 && (strlen(path) > fspath) && (path[fspath] != '/'))
|
if (fspath > 1 && (strlen(path) > fspath) && (path[fspath] != '/'))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
empty = iter;
|
fs = iter;
|
||||||
prefixlen = fspath;
|
prefixlen = fspath;
|
||||||
}
|
}
|
||||||
|
|
||||||
dfs_unlock();
|
dfs_unlock();
|
||||||
|
|
||||||
return empty;
|
return fs;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user