提交 da2f3b28 编写于 作者: Z Zhu Yanjun 提交者: Jason Gunthorpe

IB/rxe: avoid calling WARN_ON_ONCE twice

In the exit branch, WARN_ON_ONCE is called to show stack. So it is
not necessary to call WARN_ON_ONCE before going to exit.
Signed-off-by: NZhu Yanjun <yanjun.zhu@oracle.com>
Reviewed-by: NLeon Romanovsky <leonro@mellanox.com>
Signed-off-by: NJason Gunthorpe <jgg@mellanox.com>
上级 5e6e78db
...@@ -659,7 +659,6 @@ int rxe_completer(void *arg) ...@@ -659,7 +659,6 @@ int rxe_completer(void *arg)
qp->qp_timeout_jiffies) qp->qp_timeout_jiffies)
mod_timer(&qp->retrans_timer, mod_timer(&qp->retrans_timer,
jiffies + qp->qp_timeout_jiffies); jiffies + qp->qp_timeout_jiffies);
WARN_ON_ONCE(skb);
goto exit; goto exit;
case COMPST_ERROR_RETRY: case COMPST_ERROR_RETRY:
...@@ -673,7 +672,6 @@ int rxe_completer(void *arg) ...@@ -673,7 +672,6 @@ int rxe_completer(void *arg)
/* there is nothing to retry in this case */ /* there is nothing to retry in this case */
if (!wqe || (wqe->state == wqe_state_posted)) { if (!wqe || (wqe->state == wqe_state_posted)) {
WARN_ON_ONCE(skb);
goto exit; goto exit;
} }
...@@ -702,7 +700,6 @@ int rxe_completer(void *arg) ...@@ -702,7 +700,6 @@ int rxe_completer(void *arg)
skb = NULL; skb = NULL;
} }
WARN_ON_ONCE(skb);
goto exit; goto exit;
} else { } else {
...@@ -746,7 +743,6 @@ int rxe_completer(void *arg) ...@@ -746,7 +743,6 @@ int rxe_completer(void *arg)
skb = NULL; skb = NULL;
} }
WARN_ON_ONCE(skb);
goto exit; goto exit;
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册