cifs_lookup(): cifs_get_inode_...() never returns 0 with *inode left NULL

not since 2004...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
Al Viro 2018-05-14 21:26:32 -04:00
parent 500e2ab6c3
commit a8b75f663e
1 changed files with 1 additions and 1 deletions

View File

@ -812,7 +812,7 @@ cifs_lookup(struct inode *parent_dir_inode, struct dentry *direntry,
parent_dir_inode->i_sb, xid, NULL); parent_dir_inode->i_sb, xid, NULL);
} }
if ((rc == 0) && (newInode != NULL)) { if (rc == 0) {
d_add(direntry, newInode); d_add(direntry, newInode);
/* since paths are not looked up by component - the parent /* since paths are not looked up by component - the parent
directories are presumed to be good here */ directories are presumed to be good here */