vfs: remove extraneous NULL d_inode check from do_filp_open
authorJeff Layton <[email protected]>
Mon, 16 Nov 2009 20:05:20 +0000 (12:05 -0800)
committerAl Viro <[email protected]>
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 <[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]>
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:
        /*