mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 05:16:47 +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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user