Skip to content

Commit

Permalink
ext3: Remove useless condition in if statement.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wei Yuan authored and Jan Kara committed Apr 1, 2015
1 parent 847aac6 commit 78c3eb3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fs/ext3/xattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 78c3eb3

Please sign in to comment.