mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-21 20:51:27 +00:00
ib_srpt: Clean up srpt_handle_rdma_comp()
This patch does not change any functionality. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5389 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -1489,12 +1489,11 @@ static void srpt_handle_rdma_comp(struct srpt_rdma_ch *ch,
|
||||
enum srpt_opcode opcode,
|
||||
enum scst_exec_context context)
|
||||
{
|
||||
struct scst_cmd *scmnd;
|
||||
struct scst_cmd *scmnd = &ioctx->scmnd;
|
||||
|
||||
EXTRACHECKS_WARN_ON(ioctx->n_rdma <= 0);
|
||||
srpt_adjust_srq_wr_avail(ch, ioctx->n_rdma);
|
||||
|
||||
scmnd = &ioctx->scmnd;
|
||||
if (opcode == SRPT_RDMA_READ_LAST && scmnd) {
|
||||
if (srpt_test_and_set_cmd_state(ioctx, SRPT_STATE_NEED_DATA,
|
||||
SRPT_STATE_DATA_IN))
|
||||
|
||||
Reference in New Issue
Block a user