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

Commit bf0c84f1 authored by Namhyung Kim's avatar Namhyung Kim Committed by Trond Myklebust
Browse files

NFS: use ERR_CAST()



Use ERR_CAST() intead of wierd-looking cast.

Signed-off-by: default avatarNamhyung Kim <namhyung@gmail.com>
Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent 5f3e97c9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1218,7 +1218,7 @@ static struct dentry *nfs_lookup(struct inode *dir, struct dentry * dentry, stru
		goto out_unblock_sillyrename;
	}
	inode = nfs_fhget(dentry->d_sb, fhandle, fattr);
	res = (struct dentry *)inode;
	res = ERR_CAST(inode);
	if (IS_ERR(res))
		goto out_unblock_sillyrename;