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

Commit cb59861f authored by Jeff Layton's avatar Jeff Layton Committed by Al Viro
Browse files

vfs: remove extraneous NULL d_inode check from do_filp_open



We can't get to this point unless it's a valid pointer.

Signed-off-by: default avatarJeff Layton <jlayton@redhat.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent a3a065e3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1764,7 +1764,7 @@ struct file *do_filp_open(int dfd, const char *pathname,

	path_to_nameidata(&path, &nd);
	error = -EISDIR;
	if (path.dentry->d_inode && S_ISDIR(path.dentry->d_inode->i_mode))
	if (S_ISDIR(path.dentry->d_inode->i_mode))
		goto exit;
ok:
	/*