mirror of https://gitee.com/openkylin/linux.git
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:
parent
ff1d1f7179
commit
63ff78b25c
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue