projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72b8e0f
)
ext4: remove useless condition in if statement.
author
Wei Yuan
<
[email protected]
>
Fri, 3 Apr 2015 03:50:48 +0000
(23:50 -0400)
committer
Theodore Ts'o
<
[email protected]
>
Fri, 3 Apr 2015 03:50:48 +0000
(23:50 -0400)
In this if statement, the previous condition is useless, the later one
has covered it.
Signed-off-by: Weiyuan <
[email protected]
>
Signed-off-by: Theodore Ts'o <
[email protected]
>
Reviewed-by: Lukas Czerner <
[email protected]
>
fs/ext4/xattr.c
patch
|
blob
|
history
diff --git
a/fs/ext4/xattr.c
b/fs/ext4/xattr.c
index 99a2cf858c8f63593c671fc3b0253ee28e5557d1..759842ff8af050be473ce3cab3b754d7f413a67d 100644
(file)
--- a/
fs/ext4/xattr.c
+++ b/
fs/ext4/xattr.c
@@
-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) +
EXT4_XATTR_SIZE(i->value_len))
return -ENOSPC;
}