Commit 5f80f62a authored by Wei Yuan's avatar Wei Yuan Committed by Theodore Ts'o

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: default avatarWeiyuan <>
Signed-off-by: Theodore Ts'o's avatarTheodore Ts'o <>
Reviewed-by: default avatarLukas Czerner <>
parent 72b8e0f9
......@@ -638,8 +638,7 @@ ext4_xattr_set_entry(struct ext4_xattr_info *i, struct ext4_xattr_search *s)
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) +
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