diff options
author | Leon Romanovsky <leon@kernel.org> | 2016-11-03 15:44:25 +0100 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-12-03 19:12:52 +0100 |
commit | 74226649f42d34a8ade2799bfb4f3941f4adfa95 (patch) | |
tree | ad34cf8ea667efcf909cfd2b4dc066c2bb218f9a /drivers/infiniband/ulp/ipoib/ipoib_main.c | |
parent | IB/isert: Remove and fix debug prints after allocation failure (diff) | |
download | linux-74226649f42d34a8ade2799bfb4f3941f4adfa95.tar.xz linux-74226649f42d34a8ade2799bfb4f3941f4adfa95.zip |
IB/ipoib: Remove and fix debug prints after allocation failure
The prints after [k|v][m|z|c]alloc() functions are not needed,
because in case of failure, allocator will print their internal
error prints anyway.
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/ulp/ipoib/ipoib_main.c')
-rw-r--r-- | drivers/infiniband/ulp/ipoib/ipoib_main.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/infiniband/ulp/ipoib/ipoib_main.c b/drivers/infiniband/ulp/ipoib/ipoib_main.c index 5636fc3da6b8..423b30dfe2d8 100644 --- a/drivers/infiniband/ulp/ipoib/ipoib_main.c +++ b/drivers/infiniband/ulp/ipoib/ipoib_main.c @@ -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) { |