diff options
author | Wang Sheng-Hui <crosslonelyover@gmail.com> | 2011-01-10 18:10:37 +0100 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2011-01-10 18:10:37 +0100 |
commit | 1f605b302724120777a1c38743cb20e2c8807333 (patch) | |
tree | 2f7379c758573718f68da2c045e57e3164ea421a /fs | |
parent | ext2,ext3,ext4: clarify comment for extN_xattr_set_handle (diff) | |
download | linux-1f605b302724120777a1c38743cb20e2c8807333.tar.xz linux-1f605b302724120777a1c38743cb20e2c8807333.zip |
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ext2/xattr.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/fs/ext2/xattr.c b/fs/ext2/xattr.c index f3ffbf1cc8d0..c2e4dce984d2 100644 --- a/fs/ext2/xattr.c +++ b/fs/ext2/xattr.c @@ -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; |