ext2: remove dead code in ext2_xattr_get
authorWang Sheng-Hui <crosslonelyover@gmail.com>
Mon, 10 Jan 2011 17:10:37 +0000 (12:10 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 10 Jan 2011 17:10:37 +0000 (12:10 -0500)
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>
fs/ext2/xattr.c

index f3ffbf1cc8d0988fbbee8e74cb0f5506a16791a6..c2e4dce984d2abd398640c0421a094d8afad72b8 100644 (file)
@@ -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;