* [PATCH] vfs: remove extraneous NULL d_inode check from do_filp_open
@ 2009-11-10 16:02 Jeff Layton
0 siblings, 0 replies; only message in thread
From: Jeff Layton @ 2009-11-10 16:02 UTC (permalink / raw)
To: linux-fsdevel, linux-kernel
We can't get to this point unless it's a valid pointer.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
---
fs/namei.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/fs/namei.c b/fs/namei.c
index d11f404..3374917 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -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:
/*
--
1.5.5.6
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-11-10 16:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-10 16:02 [PATCH] vfs: remove extraneous NULL d_inode check from do_filp_open Jeff Layton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).