projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff1d1f7
)
ceph: fix uninitialized err variable
author
Sage Weil
<sage@newdream.net>
Mon, 2 Nov 2009 01:51:15 +0000
(17:51 -0800)
committer
Sage Weil
<sage@newdream.net>
Mon, 2 Nov 2009 01:51:15 +0000
(17:51 -0800)
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>
fs/ceph/xattr.c
patch
|
blob
|
history
diff --git
a/fs/ceph/xattr.c
b/fs/ceph/xattr.c
index 65b3a84bbb2e57c6d5959ee208aad1bb3a6f7385..1a48a55c5109181336e30954943456418fcb1706 100644
(file)
--- a/
fs/ceph/xattr.c
+++ b/
fs/ceph/xattr.c
@@
-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",