ext3: Remove useless condition in if statement.
[firefly-linux-kernel-4.4.55.git] / fs / ext3 / xattr.c
index c6874be6d58b41f02bcaa3b93cf182845bd85bec..24215dc09a18f5ac876a6adfe4465b6e20ea6009 100644 (file)
@@ -546,8 +546,7 @@ ext3_xattr_set_entry(struct ext3_xattr_info *i, struct ext3_xattr_search *s)
                free += EXT3_XATTR_LEN(name_len);
        }
        if (i->value) {
-               if (free < EXT3_XATTR_SIZE(i->value_len) ||
-                   free < EXT3_XATTR_LEN(name_len) +
+               if (free < EXT3_XATTR_LEN(name_len) +
                           EXT3_XATTR_SIZE(i->value_len))
                        return -ENOSPC;
        }