diff options
author | Wei Yuan <weiyuan.wei@huawei.com> | 2015-03-20 11:09:10 +0800 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2015-04-01 09:39:49 +0200 |
commit | 78c3eb3c84470a654b283103deff0ba128759dcd (patch) | |
tree | 87b10163b40fdbea5ce5375e97be507a0502a9d3 /fs | |
parent | 847aac644e92e5624f2c153bab409bf713d5ff9a (diff) | |
download | blackbird-op-linux-78c3eb3c84470a654b283103deff0ba128759dcd.tar.gz blackbird-op-linux-78c3eb3c84470a654b283103deff0ba128759dcd.zip |
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ext3/xattr.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ext3/xattr.c b/fs/ext3/xattr.c index c6874be6d58b..24215dc09a18 100644 --- a/fs/ext3/xattr.c +++ b/fs/ext3/xattr.c @@ -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; } |