mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 05:48:40 +00:00
NFS: Clean up encode_cb_sequence_res()
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
This commit is contained in:
parent
535ece2b8e
commit
3d0bfaa60d
1 changed files with 3 additions and 5 deletions
|
@ -692,11 +692,11 @@ static __be32 encode_cb_sequence_res(struct svc_rqst *rqstp,
|
|||
__be32 status = res->csr_status;
|
||||
|
||||
if (unlikely(status != 0))
|
||||
goto out;
|
||||
return status;
|
||||
|
||||
status = encode_sessionid(xdr, &res->csr_sessionid);
|
||||
if (status)
|
||||
goto out;
|
||||
return status;
|
||||
|
||||
p = xdr_reserve_space(xdr, 4 * sizeof(uint32_t));
|
||||
if (unlikely(p == NULL))
|
||||
|
@ -706,9 +706,7 @@ static __be32 encode_cb_sequence_res(struct svc_rqst *rqstp,
|
|||
*p++ = htonl(res->csr_slotid);
|
||||
*p++ = htonl(res->csr_highestslotid);
|
||||
*p++ = htonl(res->csr_target_highestslotid);
|
||||
out:
|
||||
dprintk("%s: exit with status = %d\n", __func__, ntohl(status));
|
||||
return status;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static __be32
|
||||
|
|
Loading…
Reference in a new issue