Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1f605b30 authored by Wang Sheng-Hui's avatar Wang Sheng-Hui Committed by Theodore Ts'o
Browse files

ext2: remove dead code in ext2_xattr_get

parent 6e9510b0
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -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;