提交 dfdb0899 编写于 作者: L Leon Romanovsky 提交者: Jason Gunthorpe

RDMA/ipoib: Remove check of destroy CQ

There are nothing to do from user side with knowledge that destroy CQ
fails.
Signed-off-by: NLeon Romanovsky <leonro@mellanox.com>
Signed-off-by: NJason Gunthorpe <jgg@mellanox.com>
上级 eaa1ca9c
...@@ -260,11 +260,8 @@ void ipoib_transport_dev_cleanup(struct net_device *dev) ...@@ -260,11 +260,8 @@ void ipoib_transport_dev_cleanup(struct net_device *dev)
priv->qp = NULL; priv->qp = NULL;
} }
if (ib_destroy_cq(priv->send_cq)) ib_destroy_cq(priv->send_cq);
ipoib_warn(priv, "ib_cq_destroy (send) failed\n"); ib_destroy_cq(priv->recv_cq);
if (ib_destroy_cq(priv->recv_cq))
ipoib_warn(priv, "ib_cq_destroy (recv) failed\n");
} }
void ipoib_event(struct ib_event_handler *handler, void ipoib_event(struct ib_event_handler *handler,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册