In this if statement, the previous condition is useless, the later one
has covered it.
Signed-off-by: Weiyuan <weiyuan.wei@huawei.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Lukas Czerner <lczerner@redhat.com>
                free += EXT4_XATTR_LEN(name_len);
        }
        if (i->value) {
-               if (free < EXT4_XATTR_SIZE(i->value_len) ||
-                   free < EXT4_XATTR_LEN(name_len) +
+               if (free < EXT4_XATTR_LEN(name_len) +
                           EXT4_XATTR_SIZE(i->value_len))
                        return -ENOSPC;
        }