Commit 78c3eb3c authored by Wei Yuan's avatar Wei Yuan Committed by Jan Kara

ext3: Remove useless condition in if statement.

In this if statement, the previous condition is useless, the later one has covered it.
Signed-off-by: default avatarWeiyuan <weiyuan.wei@huawei.com>
Reviewed-by: default avatarLukas Czerner <lczerner@redhat.com>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
parent 847aac64
...@@ -546,8 +546,7 @@ ext3_xattr_set_entry(struct ext3_xattr_info *i, struct ext3_xattr_search *s) ...@@ -546,8 +546,7 @@ ext3_xattr_set_entry(struct ext3_xattr_info *i, struct ext3_xattr_search *s)
free += EXT3_XATTR_LEN(name_len); free += EXT3_XATTR_LEN(name_len);
} }
if (i->value) { if (i->value) {
if (free < EXT3_XATTR_SIZE(i->value_len) || if (free < EXT3_XATTR_LEN(name_len) +
free < EXT3_XATTR_LEN(name_len) +
EXT3_XATTR_SIZE(i->value_len)) EXT3_XATTR_SIZE(i->value_len))
return -ENOSPC; return -ENOSPC;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment