vfs: remove extraneous NULL d_inode check from do_filp_open
authorJeff Layton <jlayton@redhat.com>
Mon, 16 Nov 2009 20:05:20 +0000 (12:05 -0800)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 17 Dec 2009 15:52:34 +0000 (10:52 -0500)
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>
fs/namei.c

index d2783c8a770be81ea182e7b11d912ad3972b0a9a..dad4b80257db95759a615e392b3a300120fa9472 100644 (file)
@@ -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:
        /*