提交 63ff78b2 编写于 作者: S Sage Weil

ceph: fix uninitialized err variable

Fixes warning
fs/ceph/xattr.c: In function '__build_xattrs':
fs/ceph/xattr.c:353: warning: 'err' may be used uninitialized in this function
Signed-off-by: NSage Weil <sage@newdream.net>
上级 ff1d1f71
...@@ -350,7 +350,7 @@ static int __build_xattrs(struct inode *inode) ...@@ -350,7 +350,7 @@ static int __build_xattrs(struct inode *inode)
struct ceph_inode_info *ci = ceph_inode(inode); struct ceph_inode_info *ci = ceph_inode(inode);
int xattr_version; int xattr_version;
struct ceph_inode_xattr **xattrs = NULL; struct ceph_inode_xattr **xattrs = NULL;
int err; int err = 0;
int i; int i;
dout("__build_xattrs() len=%d\n", dout("__build_xattrs() len=%d\n",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册