aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph/xattr.c
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2009-11-01 20:51:15 -0500
committerSage Weil <sage@newdream.net>2009-11-01 20:51:15 -0500
commit63ff78b25c4b204075b5b98afcac6ad3639d43fe (patch)
treecfe09a50bb1227d5c83c4515f53636208b0eec09 /fs/ceph/xattr.c
parentff1d1f7179363209b7f1493ea39b666f50d05cf4 (diff)
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>
Diffstat (limited to 'fs/ceph/xattr.c')
-rw-r--r--fs/ceph/xattr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/xattr.c b/fs/ceph/xattr.c
index 65b3a84bbb2..1a48a55c510 100644
--- a/fs/ceph/xattr.c
+++ b/fs/ceph/xattr.c
@@ -350,7 +350,7 @@ static int __build_xattrs(struct inode *inode)
350 struct ceph_inode_info *ci = ceph_inode(inode); 350 struct ceph_inode_info *ci = ceph_inode(inode);
351 int xattr_version; 351 int xattr_version;
352 struct ceph_inode_xattr **xattrs = NULL; 352 struct ceph_inode_xattr **xattrs = NULL;
353 int err; 353 int err = 0;
354 int i; 354 int i;
355 355
356 dout("__build_xattrs() len=%d\n", 356 dout("__build_xattrs() len=%d\n",