Skip to content

Commit

Permalink
ext2: remove dead code in ext2_xattr_get
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wang Sheng-Hui authored and Theodore Ts'o committed Jan 10, 2011
1 parent 6e9510b commit 1f605b3
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions fs/ext2/xattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,14 +199,6 @@ bad_block: ext2_error(inode->i_sb, "ext2_xattr_get",
goto found;
entry = next;
}
/* Check the remaining name entries */
while (!IS_LAST_ENTRY(entry)) {
struct ext2_xattr_entry *next =
EXT2_XATTR_NEXT(entry);
if ((char *)next >= end)
goto bad_block;
entry = next;
}
if (ext2_xattr_cache_insert(bh))
ea_idebug(inode, "cache insert failed");
error = -ENODATA;
Expand Down

0 comments on commit 1f605b3

Please sign in to comment.