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

Commit 0c1aa9a9 authored by Al Viro's avatar Al Viro
Browse files

deuglify squashfs_lookup()



d_splice_alias(NULL, dentry) is equivalent to d_add(dentry, NULL), NULL
so no need for that if (inode) ... in there (or ERR_PTR(0), for that
matter)

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 5b4b299c
Loading
Loading
Loading
Loading
+1 −4
Original line number Original line Diff line number Diff line
@@ -232,10 +232,7 @@ static struct dentry *squashfs_lookup(struct inode *dir, struct dentry *dentry,


exit_lookup:
exit_lookup:
	kfree(dire);
	kfree(dire);
	if (inode)
	return d_splice_alias(inode, dentry);
	return d_splice_alias(inode, dentry);
	d_add(dentry, inode);
	return ERR_PTR(0);


data_error:
data_error:
	err = -EIO;
	err = -EIO;