]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/infiniband/hw/i40iw/i40iw_ctrl.c
i40iw: Remove variable flush_code and check to set qp->sq_flush
[karo-tx-linux.git] / drivers / infiniband / hw / i40iw / i40iw_ctrl.c
index 5dde358349ee2dff8fcf0e36d1edda4fe779df63..a13503715f207aad128b41328fa087cb72df5a1a 100644 (file)
@@ -4185,7 +4185,6 @@ static int i40iw_bld_terminate_hdr(struct i40iw_sc_qp *qp,
        u16 ddp_seg_len;
        int copy_len = 0;
        u8 is_tagged = 0;
-       enum i40iw_flush_opcode flush_code = FLUSH_INVALID;
        u32 opcode;
        struct i40iw_terminate_hdr *termhdr;
 
@@ -4358,9 +4357,6 @@ static int i40iw_bld_terminate_hdr(struct i40iw_sc_qp *qp,
        if (copy_len)
                memcpy(termhdr + 1, pkt, copy_len);
 
-       if (flush_code && !info->in_rdrsp_wr)
-               qp->sq_flush = (info->sq) ? true : false;
-
        return sizeof(struct i40iw_terminate_hdr) + copy_len;
 }