Skip to content

Commit

Permalink
ceph: fix uninitialized err variable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sage Weil committed Nov 2, 2009
1 parent ff1d1f7 commit 63ff78b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ceph/xattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 63ff78b

Please sign in to comment.