aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Layton <[email protected]>2009-11-16 12:05:20 -0800
committerAl Viro <[email protected]>2009-12-17 10:52:34 -0500
commitcb59861f03a626196a23fdef5e20ddbb8cca6466 (patch)
tree777dda2c1764e74cf6e7e5bda27314bb99c5b4d1
parenta3a065e3f13da8a3470ed09c7f38aad256083726 (diff)
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]> Cc: Al Viro <[email protected]> Cc: Christoph Hellwig <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Al Viro <[email protected]>
-rw-r--r--fs/namei.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/namei.c b/fs/namei.c
index d2783c8a770b..dad4b80257db 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -1764,7 +1764,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:
/*