mirror of
https://github.com/apache/nuttx.git
synced 2026-05-29 04:19:37 +08:00
fs: move memset to upper lever for statfs
if struct statfs add new members, such as f_fsid, no additional code changes are required. Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
This commit is contained in:
@@ -1161,7 +1161,6 @@ static int hostfs_statfs(FAR struct inode *mountpt, FAR struct statfs *buf)
|
||||
|
||||
/* Call the host fs to perform the statfs */
|
||||
|
||||
memset(buf, 0, sizeof(struct statfs));
|
||||
ret = host_statfs(fs->fs_root, buf);
|
||||
buf->f_type = HOSTFS_MAGIC;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user