mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-06 14:48:06 +00:00
NFS: Clean up decode_notify_lock_args()
Let's cut out the goto and return any errors immedately Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
This commit is contained in:
parent
1796549ad4
commit
535ece2b8e
1 changed files with 2 additions and 5 deletions
|
@ -518,11 +518,8 @@ static __be32 decode_notify_lock_args(struct svc_rqst *rqstp, struct xdr_stream
|
||||||
|
|
||||||
status = decode_fh(xdr, &args->cbnl_fh);
|
status = decode_fh(xdr, &args->cbnl_fh);
|
||||||
if (unlikely(status != 0))
|
if (unlikely(status != 0))
|
||||||
goto out;
|
return status;
|
||||||
status = decode_lockowner(xdr, args);
|
return decode_lockowner(xdr, args);
|
||||||
out:
|
|
||||||
dprintk("%s: exit with status = %d\n", __func__, ntohl(status));
|
|
||||||
return status;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* CONFIG_NFS_V4_1 */
|
#endif /* CONFIG_NFS_V4_1 */
|
||||||
|
|
Loading…
Add table
Reference in a new issue