vfs: remove extraneous NULL d_inode check from do_filp_open
PATCH 9/9 vfs: remove extraneous NULL d_inode check from do_filp_open
From: Jeff Layton <[email protected]>
We can't get to this point unless it's a valid pointer.
Signed-off-by Jeff Layton <[email protected]>
Cc Al Viro <[email protected]>
Cc Christoph Hellwig <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
fs/namei.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/namei.c renamed from fs/namei.c~vfs-remove-extraneous-null-d_inode-check-from-do_filp_open +1 -1
@@ -1818,7 +1818,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:/*
_
Quoted 8 lines · On Tue, 17 Nov 2009, [email protected] wrote:
From: Jeff Layton <[email protected]>
We can't get to this point unless it's a valid pointer.
Signed-off-by Jeff Layton <[email protected]>Cc Al Viro <[email protected]>Cc Christoph Hellwig <[email protected]>Signed-off-by Andrew Morton <[email protected]>
Acked-by Miklos Szeredi <[email protected]>