ext4: 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> Signed-off-by: Theodore Ts'o <tytso@mit.edu> Reviewed-by: Lukas Czerner <lczerner@redhat.com>
This commit is contained in:
Родитель
72b8e0f9fa
Коммит
5f80f62ada
|
@ -638,8 +638,7 @@ ext4_xattr_set_entry(struct ext4_xattr_info *i, struct ext4_xattr_search *s)
|
||||||
free += EXT4_XATTR_LEN(name_len);
|
free += EXT4_XATTR_LEN(name_len);
|
||||||
}
|
}
|
||||||
if (i->value) {
|
if (i->value) {
|
||||||
if (free < EXT4_XATTR_SIZE(i->value_len) ||
|
if (free < EXT4_XATTR_LEN(name_len) +
|
||||||
free < EXT4_XATTR_LEN(name_len) +
|
|
||||||
EXT4_XATTR_SIZE(i->value_len))
|
EXT4_XATTR_SIZE(i->value_len))
|
||||||
return -ENOSPC;
|
return -ENOSPC;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче