Merge pull request #7 from PaulCapron/patch-1

vfs: Fix counting in `inode_avail_count`
This commit is contained in:
Marek Kraus 2020-10-28 23:00:59 +01:00 committed by GitHub
commit 02249b86cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -131,7 +131,7 @@ int inode_avail_count(void)
int e = 0;
for (; e < AOS_CONFIG_VFS_DEV_NODES; e++) {
if (g_vfs_dev_nodes[count].type == VFS_TYPE_NOT_INIT) {
if (g_vfs_dev_nodes[e].type == VFS_TYPE_NOT_INIT) {
count++;
}
}