mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 19:26:25 +00:00
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: Jeff Layton <jlayton@redhat.com> Cc: Al Viro <viro@zeniv.linux.org.uk> Cc: Christoph Hellwig <hch@lst.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
a3a065e3f1
commit
cb59861f03
1 changed files with 1 additions and 1 deletions
|
@ -1764,7 +1764,7 @@ do_last:
|
||||||
|
|
||||||
path_to_nameidata(&path, &nd);
|
path_to_nameidata(&path, &nd);
|
||||||
error = -EISDIR;
|
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;
|
goto exit;
|
||||||
ok:
|
ok:
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue