diff options
author | Dan Carpenter <error27@gmail.com> | 2010-03-20 09:01:27 -0400 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2010-05-17 18:25:14 -0400 |
commit | c7708075f18086ee7d02df8b891910893e9ea372 (patch) | |
tree | 04a8107f36b363edaf6735abe468760994e9461b /fs/ceph/xattr.c | |
parent | 104648ad3f2ebe8556c020e5f0344853076cd5ee (diff) |
ceph: cleanup: remove dead code
"xattr" is never NULL here. We took care of that in the previous
if statement block.
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/xattr.c')
-rw-r--r-- | fs/ceph/xattr.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/ceph/xattr.c b/fs/ceph/xattr.c index 8938934c4c93..d940d14f6922 100644 --- a/fs/ceph/xattr.c +++ b/fs/ceph/xattr.c | |||
@@ -186,12 +186,6 @@ static int __set_xattr(struct ceph_inode_info *ci, | |||
186 | ci->i_xattrs.names_size -= xattr->name_len; | 186 | ci->i_xattrs.names_size -= xattr->name_len; |
187 | ci->i_xattrs.vals_size -= xattr->val_len; | 187 | ci->i_xattrs.vals_size -= xattr->val_len; |
188 | } | 188 | } |
189 | if (!xattr) { | ||
190 | pr_err("__set_xattr ENOMEM on %p %llx.%llx xattr %s=%s\n", | ||
191 | &ci->vfs_inode, ceph_vinop(&ci->vfs_inode), name, | ||
192 | xattr->val); | ||
193 | return -ENOMEM; | ||
194 | } | ||
195 | ci->i_xattrs.names_size += name_len; | 189 | ci->i_xattrs.names_size += name_len; |
196 | ci->i_xattrs.vals_size += val_len; | 190 | ci->i_xattrs.vals_size += val_len; |
197 | if (val) | 191 | if (val) |