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: Weiyuan <weiyuan.wei@huawei.com> Reviewed-by: Lukas Czerner <lczerner@redhat.com> Signed-off-by: Jan Kara <jack@suse.cz>
This commit is contained in:
parent
847aac644e
commit
78c3eb3c84
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue