diff options
author | Henry Orosco <henry.orosco@intel.com> | 2016-11-09 23:20:31 -0500 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-12-05 16:09:38 -0500 |
commit | 78e945aace5b9aaf19404799cd29b4d155806053 (patch) | |
tree | 0c777de3cecd2b61b1881534e3daa634e1ec93d9 | |
parent | dfd9c43b3ce97e1b66a6dc1d9dcc95db9a27cc4b (diff) |
i40iw: Remove variable flush_code and check to set qp->sq_flush
The flush_code variable in i40iw_bld_terminate_hdr() is obsolete and
the check to set qp->sq_flush is unreachable. Currently flush code is
populated in setup_term_hdr() and both SQ and RQ are flushed always
as part of the tear down flow.
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Henry Orosco <henry.orosco@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
-rw-r--r-- | drivers/infiniband/hw/i40iw/i40iw_ctrl.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/infiniband/hw/i40iw/i40iw_ctrl.c b/drivers/infiniband/hw/i40iw/i40iw_ctrl.c index 5dde358349ee..a13503715f20 100644 --- a/drivers/infiniband/hw/i40iw/i40iw_ctrl.c +++ b/drivers/infiniband/hw/i40iw/i40iw_ctrl.c | |||
@@ -4185,7 +4185,6 @@ static int i40iw_bld_terminate_hdr(struct i40iw_sc_qp *qp, | |||
4185 | u16 ddp_seg_len; | 4185 | u16 ddp_seg_len; |
4186 | int copy_len = 0; | 4186 | int copy_len = 0; |
4187 | u8 is_tagged = 0; | 4187 | u8 is_tagged = 0; |
4188 | enum i40iw_flush_opcode flush_code = FLUSH_INVALID; | ||
4189 | u32 opcode; | 4188 | u32 opcode; |
4190 | struct i40iw_terminate_hdr *termhdr; | 4189 | struct i40iw_terminate_hdr *termhdr; |
4191 | 4190 | ||
@@ -4358,9 +4357,6 @@ static int i40iw_bld_terminate_hdr(struct i40iw_sc_qp *qp, | |||
4358 | if (copy_len) | 4357 | if (copy_len) |
4359 | memcpy(termhdr + 1, pkt, copy_len); | 4358 | memcpy(termhdr + 1, pkt, copy_len); |
4360 | 4359 | ||
4361 | if (flush_code && !info->in_rdrsp_wr) | ||
4362 | qp->sq_flush = (info->sq) ? true : false; | ||
4363 | |||
4364 | return sizeof(struct i40iw_terminate_hdr) + copy_len; | 4360 | return sizeof(struct i40iw_terminate_hdr) + copy_len; |
4365 | } | 4361 | } |
4366 | 4362 | ||