mirror of
https://github.com/pine64/bl_iot_sdk.git
synced 2024-10-04 14:00:01 +00:00
Merge pull request #7 from PaulCapron/patch-1
vfs: Fix counting in `inode_avail_count`
This commit is contained in:
commit
02249b86cf
@ -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++;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user