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

Commit 147ce699 authored by Al Viro's avatar Al Viro
Browse files

proc_fill_cache(): kill pointless check



we'd just checked that child->d_inode is non-NULL, for fuck sake!

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 338b2f57
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -1710,10 +1710,8 @@ bool proc_fill_cache(struct file *file, struct dir_context *ctx,
	if (!child || IS_ERR(child) || !child->d_inode)
		goto end_instantiate;
	inode = child->d_inode;
	if (inode) {
	ino = inode->i_ino;
	type = inode->i_mode >> 12;
	}
	dput(child);
end_instantiate:
	if (!ino)