Commit 3d0bfaa6 authored by Anna Schumaker's avatar Anna Schumaker Committed by Trond Myklebust

NFS: Clean up encode_cb_sequence_res()

Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@primarydata.com>
parent 535ece2b
...@@ -692,11 +692,11 @@ static __be32 encode_cb_sequence_res(struct svc_rqst *rqstp, ...@@ -692,11 +692,11 @@ static __be32 encode_cb_sequence_res(struct svc_rqst *rqstp,
__be32 status = res->csr_status; __be32 status = res->csr_status;
if (unlikely(status != 0)) if (unlikely(status != 0))
goto out; return status;
status = encode_sessionid(xdr, &res->csr_sessionid); status = encode_sessionid(xdr, &res->csr_sessionid);
if (status) if (status)
goto out; return status;
p = xdr_reserve_space(xdr, 4 * sizeof(uint32_t)); p = xdr_reserve_space(xdr, 4 * sizeof(uint32_t));
if (unlikely(p == NULL)) if (unlikely(p == NULL))
...@@ -706,9 +706,7 @@ static __be32 encode_cb_sequence_res(struct svc_rqst *rqstp, ...@@ -706,9 +706,7 @@ static __be32 encode_cb_sequence_res(struct svc_rqst *rqstp,
*p++ = htonl(res->csr_slotid); *p++ = htonl(res->csr_slotid);
*p++ = htonl(res->csr_highestslotid); *p++ = htonl(res->csr_highestslotid);
*p++ = htonl(res->csr_target_highestslotid); *p++ = htonl(res->csr_target_highestslotid);
out: return 0;
dprintk("%s: exit with status = %d\n", __func__, ntohl(status));
return status;
} }
static __be32 static __be32
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment