Skip to content

Commit dc6afef

Browse files
zhuyjjgunthorpe
authored andcommitted
RDMA/irdma: Change returned type of irdma_setup_virt_qp to void
Since the returned value of the function irdma_setup_virt_qp is always 0, remove the returned value check and change the returned type to void. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Zhu Yanjun <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
1 parent 41f5fa9 commit dc6afef

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

drivers/infiniband/hw/irdma/verbs.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ static int irdma_destroy_qp(struct ib_qp *ibqp, struct ib_udata *udata)
557557
* @iwqp: qp ptr
558558
* @init_info: initialize info to return
559559
*/
560-
static int irdma_setup_virt_qp(struct irdma_device *iwdev,
560+
static void irdma_setup_virt_qp(struct irdma_device *iwdev,
561561
struct irdma_qp *iwqp,
562562
struct irdma_qp_init_info *init_info)
563563
{
@@ -574,8 +574,6 @@ static int irdma_setup_virt_qp(struct irdma_device *iwdev,
574574
init_info->sq_pa = qpmr->sq_pbl.addr;
575575
init_info->rq_pa = qpmr->rq_pbl.addr;
576576
}
577-
578-
return 0;
579577
}
580578

581579
/**
@@ -914,7 +912,7 @@ static struct ib_qp *irdma_create_qp(struct ib_pd *ibpd,
914912
}
915913
}
916914
init_info.qp_uk_init_info.abi_ver = iwpd->sc_pd.abi_ver;
917-
err_code = irdma_setup_virt_qp(iwdev, iwqp, &init_info);
915+
irdma_setup_virt_qp(iwdev, iwqp, &init_info);
918916
} else {
919917
init_info.qp_uk_init_info.abi_ver = IRDMA_ABI_VER;
920918
err_code = irdma_setup_kmode_qp(iwdev, iwqp, &init_info, init_attr);

0 commit comments

Comments
 (0)