Commit 1f605b302724120777a1c38743cb20e2c8807333
Committed by
Theodore Ts'o
1 parent
6e9510b0e0
Exists in
master
and in
20 other branches
ext2: remove dead code in ext2_xattr_get
Reviewed-by: Dan Carpenter <error27@gmail.com> Signed-off-by: Wang Sheng-Hui <crosslonelyover@gmail.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Showing 1 changed file with 0 additions and 8 deletions Side-by-side Diff
fs/ext2/xattr.c
... | ... | @@ -199,14 +199,6 @@ |
199 | 199 | goto found; |
200 | 200 | entry = next; |
201 | 201 | } |
202 | - /* Check the remaining name entries */ | |
203 | - while (!IS_LAST_ENTRY(entry)) { | |
204 | - struct ext2_xattr_entry *next = | |
205 | - EXT2_XATTR_NEXT(entry); | |
206 | - if ((char *)next >= end) | |
207 | - goto bad_block; | |
208 | - entry = next; | |
209 | - } | |
210 | 202 | if (ext2_xattr_cache_insert(bh)) |
211 | 203 | ea_idebug(inode, "cache insert failed"); |
212 | 204 | error = -ENODATA; |