]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/infiniband/ulp/ipoib/ipoib_main.c
IB/ipoib: Remove and fix debug prints after allocation failure
[karo-tx-linux.git] / drivers / infiniband / ulp / ipoib / ipoib_main.c
index 5636fc3da6b867aaabe5c1ff7f197d3f0077df76..423b30dfe2d8235afa40540a2ee4f7ce56a185fd 100644 (file)
@@ -1594,11 +1594,8 @@ int ipoib_dev_init(struct net_device *dev, struct ib_device *ca, int port)
        /* Allocate RX/TX "rings" to hold queued skbs */
        priv->rx_ring = kzalloc(ipoib_recvq_size * sizeof *priv->rx_ring,
                                GFP_KERNEL);
-       if (!priv->rx_ring) {
-               printk(KERN_WARNING "%s: failed to allocate RX ring (%d entries)\n",
-                      ca->name, ipoib_recvq_size);
+       if (!priv->rx_ring)
                goto out;
-       }
 
        priv->tx_ring = vzalloc(ipoib_sendq_size * sizeof *priv->tx_ring);
        if (!priv->tx_ring) {