IB/cxgb4: Remove debug prints after allocation failure
authorLeon Romanovsky <leon@kernel.org>
Thu, 3 Nov 2016 14:44:16 +0000 (16:44 +0200)
committerDoug Ledford <dledford@redhat.com>
Sat, 3 Dec 2016 18:12:52 +0000 (13:12 -0500)
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>
drivers/infiniband/hw/cxgb4/device.c

index 93e3d270a98af630f849947c2d6f6a1849b8d688..11a25ec1ce035121ee343c2fab1dce639a467d21 100644 (file)
@@ -841,8 +841,6 @@ static int c4iw_rdev_open(struct c4iw_rdev *rdev)
                if (rdev->wr_log) {
                        rdev->wr_log_size = 1 << c4iw_wr_log_size_order;
                        atomic_set(&rdev->wr_log_idx, 0);
-               } else {
-                       pr_err(MOD "error allocating wr_log. Logging disabled\n");
                }
        }
 
@@ -1424,8 +1422,6 @@ static void recover_queues(struct uld_ctx *ctx)
 
        qp_list.qps = kzalloc(count * sizeof *qp_list.qps, GFP_ATOMIC);
        if (!qp_list.qps) {
-               printk(KERN_ERR MOD "%s: Fatal error - DB overflow recovery failed\n",
-                      pci_name(ctx->lldi.pdev));
                spin_unlock_irq(&ctx->dev->lock);
                return;
        }