Skip to content

Commit c8fc935

Browse files
Konstantin Taranovrleon
authored andcommitted
RDMA/mana_ib: remove useless return values from dbg prints
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>
1 parent e537dee commit c8fc935

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

drivers/infiniband/hw/mana/main.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -261,9 +261,7 @@ int mana_ib_create_queue(struct mana_ib_dev *mdev, u64 addr, u32 size,
261261
}
262262
queue->umem = umem;
263263

264-
ibdev_dbg(&mdev->ib_dev,
265-
"create_dma_region ret %d gdma_region 0x%llx\n",
266-
err, queue->gdma_region);
264+
ibdev_dbg(&mdev->ib_dev, "created dma region 0x%llx\n", queue->gdma_region);
267265

268266
return 0;
269267
free_umem:

drivers/infiniband/hw/mana/mr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ struct ib_mr *mana_ib_reg_user_mr(struct ib_pd *ibpd, u64 start, u64 length,
135135
}
136136

137137
ibdev_dbg(ibdev,
138-
"create_dma_region ret %d gdma_region %llx\n", err,
138+
"created dma region for user-mr 0x%llx\n",
139139
dma_region_handle);
140140

141141
mr_params.pd_handle = pd->pd_handle;

drivers/infiniband/hw/mana/qp.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,8 @@ static int mana_ib_create_qp_rss(struct ib_qp *ibqp, struct ib_pd *pd,
217217
cq->queue.id = cq_spec.queue_index;
218218

219219
ibdev_dbg(&mdev->ib_dev,
220-
"ret %d rx_object 0x%llx wq id %llu cq id %llu\n",
221-
ret, wq->rx_object, wq->queue.id, cq->queue.id);
220+
"rx_object 0x%llx wq id %llu cq id %llu\n",
221+
wq->rx_object, wq->queue.id, cq->queue.id);
222222

223223
resp.entries[i].cqid = cq->queue.id;
224224
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,
383383
goto err_destroy_wq_obj;
384384

385385
ibdev_dbg(&mdev->ib_dev,
386-
"ret %d qp->qp_handle 0x%llx sq id %llu cq id %llu\n", err,
386+
"qp->qp_handle 0x%llx sq id %llu cq id %llu\n",
387387
qp->qp_handle, qp->raw_sq.id, send_cq->queue.id);
388388

389389
resp.sqid = qp->raw_sq.id;

0 commit comments

Comments
 (0)