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:
zhanghongyu
2023-06-06 11:59:14 +08:00
committed by Xiang Xiao
parent f80539b6a8
commit b723e90356
15 changed files with 6 additions and 13 deletions
+1
View File
@@ -588,6 +588,7 @@ static inline int userfs_statfs_dispatch(FAR struct userfs_info_s *info,
/* Dispatch the request */
DEBUGASSERT(info->userops != NULL && info->userops->statfs != NULL);
memset(&resp.buf, 0, sizeof(struct statfs));
resp.ret = info->userops->statfs(info->volinfo, &resp.buf);
/* Send the response */