From: Anna Schumaker Date: Fri, 7 Apr 2017 18:15:02 +0000 (-0400) Subject: NFS: Clean up decode_notify_lock_args() X-Git-Tag: v4.12-rc1~32^2~67 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=535ece2b8e4b0edf9f18be2d103d19f833fa8b7f;p=platform%2Fkernel%2Flinux-exynos.git NFS: Clean up decode_notify_lock_args() Let's cut out the goto and return any errors immedately Signed-off-by: Anna Schumaker Signed-off-by: Trond Myklebust --- diff --git a/fs/nfs/callback_xdr.c b/fs/nfs/callback_xdr.c index ce1e293..4cf70dc 100644 --- a/fs/nfs/callback_xdr.c +++ b/fs/nfs/callback_xdr.c @@ -518,11 +518,8 @@ static __be32 decode_notify_lock_args(struct svc_rqst *rqstp, struct xdr_stream status = decode_fh(xdr, &args->cbnl_fh); if (unlikely(status != 0)) - goto out; - status = decode_lockowner(xdr, args); -out: - dprintk("%s: exit with status = %d\n", __func__, ntohl(status)); - return status; + return status; + return decode_lockowner(xdr, args); } #endif /* CONFIG_NFS_V4_1 */