Commit bc89be94 authored by Kamal Heib's avatar Kamal Heib Committed by Jason Gunthorpe

RDMA/irdma: Return void from irdma_init_rdma_device()

The return value from irdma_init_rdma_device() is always 0 - change it to
be void.

Link: https://lore.kernel.org/r/20230515191142.413633-3-kheib@redhat.comSigned-off-by: default avatarKamal Heib <kheib@redhat.com>
Reviewed-by: default avatarShiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@nvidia.com>
parent ab4e8fc1
...@@ -4539,7 +4539,7 @@ static void irdma_init_iw_device(struct irdma_device *iwdev) ...@@ -4539,7 +4539,7 @@ static void irdma_init_iw_device(struct irdma_device *iwdev)
* irdma_init_rdma_device - initialization of rdma device * irdma_init_rdma_device - initialization of rdma device
* @iwdev: irdma device * @iwdev: irdma device
*/ */
static int irdma_init_rdma_device(struct irdma_device *iwdev) static void irdma_init_rdma_device(struct irdma_device *iwdev)
{ {
struct pci_dev *pcidev = iwdev->rf->pcidev; struct pci_dev *pcidev = iwdev->rf->pcidev;
...@@ -4552,8 +4552,6 @@ static int irdma_init_rdma_device(struct irdma_device *iwdev) ...@@ -4552,8 +4552,6 @@ static int irdma_init_rdma_device(struct irdma_device *iwdev)
iwdev->ibdev.num_comp_vectors = iwdev->rf->ceqs_count; iwdev->ibdev.num_comp_vectors = iwdev->rf->ceqs_count;
iwdev->ibdev.dev.parent = &pcidev->dev; iwdev->ibdev.dev.parent = &pcidev->dev;
ib_set_device_ops(&iwdev->ibdev, &irdma_dev_ops); ib_set_device_ops(&iwdev->ibdev, &irdma_dev_ops);
return 0;
} }
/** /**
...@@ -4591,9 +4589,7 @@ int irdma_ib_register_device(struct irdma_device *iwdev) ...@@ -4591,9 +4589,7 @@ int irdma_ib_register_device(struct irdma_device *iwdev)
{ {
int ret; int ret;
ret = irdma_init_rdma_device(iwdev); irdma_init_rdma_device(iwdev);
if (ret)
return ret;
ret = ib_device_set_netdev(&iwdev->ibdev, iwdev->netdev, 1); ret = ib_device_set_netdev(&iwdev->ibdev, iwdev->netdev, 1);
if (ret) if (ret)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment