From 8dffe4eb954a20bdb5fddcbf02a752280b8a9816 Mon Sep 17 00:00:00 2001 From: "Adam C. Emerson" Date: Mon, 7 May 2018 16:24:17 -0400 Subject: [PATCH] mds: Do not memset fnode_t fnode_t can initialize itself. Signed-off-by: Adam C. Emerson --- src/mds/CDir.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/mds/CDir.cc b/src/mds/CDir.cc index c345864e41c..e6796ee37c8 100644 --- a/src/mds/CDir.cc +++ b/src/mds/CDir.cc @@ -208,8 +208,6 @@ CDir::CDir(CInode *in, frag_t fg, MDCache *mdcache, bool auth) : num_dentries_auth_subtree_nested(0), dir_auth(CDIR_AUTH_DEFAULT) { - memset(&fnode, 0, sizeof(fnode)); - // auth assert(in->is_dir()); if (auth) state_set(STATE_AUTH); -- 2.39.5