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

Commit 01f4adc0 authored by Mariusz Kozlowski's avatar Mariusz Kozlowski Committed by Theodore Ts'o
Browse files

ext4: remove unused code from ext4_find_entry()



The unused code found in ext3_find_entry() is also present (and still
unused) in the ext4_find_entry() code. This patch removes it.

Signed-off-by: default avatarMariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
parent 221879c9
Loading
Loading
Loading
Loading
+0 −4
Original line number Original line Diff line number Diff line
@@ -861,14 +861,10 @@ static struct buffer_head * ext4_find_entry (struct dentry *dentry,
	int i, err;
	int i, err;
	struct inode *dir = dentry->d_parent->d_inode;
	struct inode *dir = dentry->d_parent->d_inode;
	int namelen;
	int namelen;
	const u8 *name;
	unsigned blocksize;


	*res_dir = NULL;
	*res_dir = NULL;
	sb = dir->i_sb;
	sb = dir->i_sb;
	blocksize = sb->s_blocksize;
	namelen = dentry->d_name.len;
	namelen = dentry->d_name.len;
	name = dentry->d_name.name;
	if (namelen > EXT4_NAME_LEN)
	if (namelen > EXT4_NAME_LEN)
		return NULL;
		return NULL;
	if (is_dx(dir)) {
	if (is_dx(dir)) {