mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 11:26:12 +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:
@@ -1610,7 +1610,6 @@ static int smartfs_statfs(FAR struct inode *mountpt, FAR struct statfs *buf)
|
||||
|
||||
/* Implement the logic!! */
|
||||
|
||||
memset(buf, 0, sizeof(struct statfs));
|
||||
buf->f_type = SMARTFS_MAGIC;
|
||||
|
||||
/* Re-request the low-level format info to update free blocks */
|
||||
|
||||
Reference in New Issue
Block a user