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: Sage Weil <sage@newdream.net>
This commit is contained in:
Sage Weil 2009-11-01 17:51:15 -08:00
parent ff1d1f7179
commit 63ff78b25c
1 changed files with 1 additions and 1 deletions

View File

@ -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",