RDMA/ipoib: Remove check of destroy CQ
authorLeon Romanovsky <leonro@mellanox.com>
Mon, 20 May 2019 06:54:20 +0000 (09:54 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 21 May 2019 18:50:53 +0000 (15:50 -0300)
There are nothing to do from user side with knowledge that destroy CQ
fails.

Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/ulp/ipoib/ipoib_verbs.c

index ba09068f620015c51b6c8f00127aa75491449b60..b69304d28f0662a5547bb43605dd9d9a842cccc8 100644 (file)
@@ -260,11 +260,8 @@ void ipoib_transport_dev_cleanup(struct net_device *dev)
                priv->qp = NULL;
        }
 
-       if (ib_destroy_cq(priv->send_cq))
-               ipoib_warn(priv, "ib_cq_destroy (send) failed\n");
-
-       if (ib_destroy_cq(priv->recv_cq))
-               ipoib_warn(priv, "ib_cq_destroy (recv) failed\n");
+       ib_destroy_cq(priv->send_cq);
+       ib_destroy_cq(priv->recv_cq);
 }
 
 void ipoib_event(struct ib_event_handler *handler,