vfs: remove extraneous NULL d_inode check from do_filp_open
PATCH 1/1 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 <[email protected]>
--- fs/namei.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
fs/namei.c +1 -1
@@ -1805,7 +1805,7 @@ do_last: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:/*
Signature · 1 line
1.5.5.6