svcrdma: Clean up svc_rdma_encode_reply_chunk()

Refactor: Match the control flow of svc_rdma_encode_write_list().

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
This commit is contained in:
Chuck Lever
2020-03-13 10:42:10 -04:00
parent f6ad77590a
commit ded380f100
2 changed files with 14 additions and 12 deletions

View File

@@ -635,6 +635,9 @@ int svc_rdma_send_reply_chunk(struct svcxprt_rdma *rdma,
struct svc_rdma_write_info *info;
int consumed, ret;
if (!rctxt->rc_reply_chunk)
return 0;
info = svc_rdma_write_info_alloc(rdma, rctxt->rc_reply_chunk);
if (!info)
return -ENOMEM;