ext3: Remove useless condition in if statement.
authorWei Yuan <weiyuan.wei@huawei.com>
Fri, 20 Mar 2015 03:09:10 +0000 (11:09 +0800)
committerJan Kara <jack@suse.cz>
Wed, 1 Apr 2015 07:39:49 +0000 (09:39 +0200)
In this if statement, the previous condition is useless, the later one has covered it.

Signed-off-by: Weiyuan <weiyuan.wei@huawei.com>
Reviewed-by: Lukas Czerner <lczerner@redhat.com>
Signed-off-by: Jan Kara <jack@suse.cz>
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;
        }
This page took 0.025428 seconds and 5 git commands to generate.