aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/cxgb4/qp.c
diff options
context:
space:
mode:
authorTian Tao <tiantao6@hisilicon.com>2021-05-20 17:39:37 +0800
committerJason Gunthorpe <jgg@nvidia.com>2021-05-20 12:28:21 -0300
commit800de3f55770529ae1e59e175b6bae73bedfa355 (patch)
tree0b157b61d535eccff9406be9e149be2dcfa7ffe2 /drivers/infiniband/hw/cxgb4/qp.c
parentIB/hfi1: Remove the repeated declaration (diff)
downloadlinux-dev-800de3f55770529ae1e59e175b6bae73bedfa355.tar.xz
linux-dev-800de3f55770529ae1e59e175b6bae73bedfa355.zip
RDMA/cxgb4: Remove useless assignments
If go to the err label, abort will be assigned a value of 1, so there is no need to assign a value of 1 here. Link: https://lore.kernel.org/r/1621503577-18093-1-git-send-email-tiantao6@hisilicon.com Signed-off-by: Tian Tao <tiantao6@hisilicon.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/infiniband/hw/cxgb4/qp.c')
-rw-r--r--drivers/infiniband/hw/cxgb4/qp.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/cxgb4/qp.c b/drivers/infiniband/hw/cxgb4/qp.c
index d109bb3822a5..1b078d5e321f 100644
--- a/drivers/infiniband/hw/cxgb4/qp.c
+++ b/drivers/infiniband/hw/cxgb4/qp.c
@@ -1963,7 +1963,6 @@ int c4iw_modify_qp(struct c4iw_dev *rhp, struct c4iw_qp *qhp,
t4_set_wq_in_error(&qhp->wq, 0);
set_state(qhp, C4IW_QP_STATE_ERROR);
if (!internal) {
- abort = 1;
disconnect = 1;
ep = qhp->ep;
c4iw_get_ep(&qhp->ep->com);