ceph: cleanup: remove dead code
authorDan Carpenter <error27@gmail.com>
Sat, 20 Mar 2010 13:01:27 +0000 (16:01 +0300)
committerSage Weil <sage@newdream.net>
Mon, 17 May 2010 22:25:14 +0000 (15:25 -0700)
"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>
fs/ceph/xattr.c

index 8938934c4c9336525a84a67a05cf1aa90831f175..d940d14f692237e6e808d3c607725a1927807bc2 100644 (file)
@@ -186,12 +186,6 @@ static int __set_xattr(struct ceph_inode_info *ci,
                ci->i_xattrs.names_size -= xattr->name_len;
                ci->i_xattrs.vals_size -= xattr->val_len;
        }
-       if (!xattr) {
-               pr_err("__set_xattr ENOMEM on %p %llx.%llx xattr %s=%s\n",
-                      &ci->vfs_inode, ceph_vinop(&ci->vfs_inode), name,
-                      xattr->val);
-               return -ENOMEM;
-       }
        ci->i_xattrs.names_size += name_len;
        ci->i_xattrs.vals_size += val_len;
        if (val)