mirror of
https://github.com/opnsense/src.git
synced 2026-03-12 05:32:15 -04:00
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
1 changed files with 2 additions and 4 deletions
|
|
@ -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 a new issue