浏览代码

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>
Al Viro 7 年之前
父节点
当前提交
a8b75f663e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      fs/cifs/dir.c

+ 1 - 1
fs/cifs/dir.c

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