RDMA/mana_ib: remove useless return values from dbg prints
authorKonstantin Taranov <kotaranov@microsoft.com>
Tue, 9 Apr 2024 14:21:05 +0000 (07:21 -0700)
committerLeon Romanovsky <leon@kernel.org>
Thu, 11 Apr 2024 11:30:24 +0000 (14:30 +0300)
Remove printing ret value on success as it was always 0.

Signed-off-by: Konstantin Taranov <kotaranov@microsoft.com>
Link: https://lore.kernel.org/r/1712672465-29960-1-git-send-email-kotaranov@linux.microsoft.com
Reviewed-by: Long Li <longli@microsoft.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/mana/main.c
drivers/infiniband/hw/mana/mr.c
drivers/infiniband/hw/mana/qp.c

index 4524c6b8074878cdffbf94d90d262d062ccbf7ad..b31dcff3269943a47d34ef1d680fd455259efb88 100644 (file)
@@ -261,9 +261,7 @@ int mana_ib_create_queue(struct mana_ib_dev *mdev, u64 addr, u32 size,
        }
        queue->umem = umem;
 
-       ibdev_dbg(&mdev->ib_dev,
-                 "create_dma_region ret %d gdma_region 0x%llx\n",
-                 err, queue->gdma_region);
+       ibdev_dbg(&mdev->ib_dev, "created dma region 0x%llx\n", queue->gdma_region);
 
        return 0;
 free_umem:
index b70b13484f0974d19bf41ca4e0d1f6872e7756d1..4f13423ecdbdf1af6a55f2e7372f2925e56234e1 100644 (file)
@@ -135,7 +135,7 @@ struct ib_mr *mana_ib_reg_user_mr(struct ib_pd *ibpd, u64 start, u64 length,
        }
 
        ibdev_dbg(ibdev,
-                 "create_dma_region ret %d gdma_region %llx\n", err,
+                 "created dma region for user-mr 0x%llx\n",
                  dma_region_handle);
 
        mr_params.pd_handle = pd->pd_handle;
index 4cd8f8afe80d1de8a0427d39fa2e50d5f5160519..8fedf6e01925125e36d49ff495080f3fb27349c7 100644 (file)
@@ -217,8 +217,8 @@ static int mana_ib_create_qp_rss(struct ib_qp *ibqp, struct ib_pd *pd,
                cq->queue.id = cq_spec.queue_index;
 
                ibdev_dbg(&mdev->ib_dev,
-                         "ret %d rx_object 0x%llx wq id %llu cq id %llu\n",
-                         ret, wq->rx_object, wq->queue.id, cq->queue.id);
+                         "rx_object 0x%llx wq id %llu cq id %llu\n",
+                         wq->rx_object, wq->queue.id, cq->queue.id);
 
                resp.entries[i].cqid = cq->queue.id;
                resp.entries[i].wqid = wq->queue.id;
@@ -383,7 +383,7 @@ static int mana_ib_create_qp_raw(struct ib_qp *ibqp, struct ib_pd *ibpd,
                goto err_destroy_wq_obj;
 
        ibdev_dbg(&mdev->ib_dev,
-                 "ret %d qp->qp_handle 0x%llx sq id %llu cq id %llu\n", err,
+                 "qp->qp_handle 0x%llx sq id %llu cq id %llu\n",
                  qp->qp_handle, qp->raw_sq.id, send_cq->queue.id);
 
        resp.sqid = qp->raw_sq.id;