Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d9975d6b authored by Pekka Enberg's avatar Pekka Enberg Committed by Linus Torvalds
Browse files

[PATCH] reiserfs: remove d_splice_alias NULL check from reiserfs_lookup



Remove redundant NULL check in reiserfs_lookup() as d_splice_alias() can take
NULL inode as input.

Signed-off-by: default avatarPekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 2ff6b1c2
Loading
Loading
Loading
Loading
+1 −5
Original line number Original line Diff line number Diff line
@@ -375,11 +375,7 @@ static struct dentry *reiserfs_lookup(struct inode *dir, struct dentry *dentry,
		return ERR_PTR(-EIO);
		return ERR_PTR(-EIO);
	}
	}


	if (inode)
	return d_splice_alias(inode, dentry);
	return d_splice_alias(inode, dentry);

	d_add(dentry, inode);
	return NULL;
}
}


/* 
/*