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

Commit ba7fe369 authored by Pekka Enberg's avatar Pekka Enberg Committed by Linus Torvalds
Browse files

[PATCH] ext3: remove d_splice_alias NULL check from ext3_lookup



Remove redundant NULL check in ext3_lookup() as d_splice_alias() can take NULL
inode as input.

Signed-off-by: default avatarPekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 082a05c6
Loading
Loading
Loading
Loading
+1 −4
Original line number Original line Diff line number Diff line
@@ -1005,10 +1005,7 @@ static struct dentry *ext3_lookup(struct inode * dir, struct dentry *dentry, str
		if (!inode)
		if (!inode)
			return ERR_PTR(-EACCES);
			return ERR_PTR(-EACCES);
	}
	}
	if (inode)
	return d_splice_alias(inode, dentry);
	return d_splice_alias(inode, dentry);
	d_add(dentry, inode);
	return NULL;
}
}