ipoib: Destroying a CQ should never fail.
Remove not needed error handling when destroying a CQ. The function in question will later on be updated to return "void". MFC after: 1 week Reviewed by: kib Sponsored by: Mellanox Technologies // NVIDIA Networking
This commit is contained in:
parent
565cb4e8cc
commit
eafc898538
@ -254,11 +254,9 @@ void ipoib_transport_dev_cleanup(struct ipoib_dev_priv *priv)
|
||||
clear_bit(IPOIB_PKEY_ASSIGNED, &priv->flags);
|
||||
}
|
||||
|
||||
if (ib_destroy_cq(priv->send_cq))
|
||||
ipoib_warn(priv, "ib_cq_destroy (send) failed\n");
|
||||
ib_destroy_cq(priv->send_cq);
|
||||
|
||||
if (ib_destroy_cq(priv->recv_cq))
|
||||
ipoib_warn(priv, "ib_cq_destroy (recv) failed\n");
|
||||
ib_destroy_cq(priv->recv_cq);
|
||||
|
||||
ipoib_cm_dev_cleanup(priv);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user