Commit 63ff78b2 authored by Sage Weil's avatar 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: default avatarSage Weil <sage@newdream.net>
parent ff1d1f71
......@@ -350,7 +350,7 @@ static int __build_xattrs(struct inode *inode)
struct ceph_inode_info *ci = ceph_inode(inode);
int xattr_version;
struct ceph_inode_xattr **xattrs = NULL;
int err;
int err = 0;
int i;
dout("__build_xattrs() len=%d\n",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment