mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
NFS: use ERR_CAST()
Use ERR_CAST() intead of wierd-looking cast. Signed-off-by: Namhyung Kim <[email protected]> Signed-off-by: Trond Myklebust <[email protected]>
This commit is contained in:
parent
5f3e97c9ee
commit
bf0c84f161
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue