summaryrefslogtreecommitdiffstats
path: root/fs/ext3
diff options
context:
space:
mode:
authorWei Yuan <weiyuan.wei@huawei.com>2015-03-20 11:09:10 +0800
committerJan Kara <jack@suse.cz>2015-04-01 09:39:49 +0200
commit78c3eb3c84470a654b283103deff0ba128759dcd (patch)
tree87b10163b40fdbea5ce5375e97be507a0502a9d3 /fs/ext3
parent847aac644e92e5624f2c153bab409bf713d5ff9a (diff)
downloadop-kernel-dev-78c3eb3c84470a654b283103deff0ba128759dcd.zip
op-kernel-dev-78c3eb3c84470a654b283103deff0ba128759dcd.tar.gz
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/ext3')
-rw-r--r--fs/ext3/xattr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ext3/xattr.c b/fs/ext3/xattr.c
index c6874be..24215dc 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;
}
OpenPOWER on IntegriCloud