diff options
author | Shiraz Saleem <shiraz.saleem@intel.com> | 2022-02-17 18:18:50 +0300 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2022-02-23 22:24:18 +0300 |
commit | 45225a93ccc01a93f7fbffef4fcb2d9c649fe71e (patch) | |
tree | 68400781bbe62f398bbbaecf90cb2a33431e4876 /drivers/infiniband/hw/irdma/hw.c | |
parent | 2c4b14ea9507106c0599349fbb8efdeb3b7aa840 (diff) | |
download | linux-45225a93ccc01a93f7fbffef4fcb2d9c649fe71e.tar.xz |
RDMA/irdma: Propagate error codes
All functions now return linux error codes. Propagate the return from
these functions as opposed to converting them to generic values.
Link: https://lore.kernel.org/r/20220217151851.1518-3-shiraz.saleem@intel.com
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/infiniband/hw/irdma/hw.c')
-rw-r--r-- | drivers/infiniband/hw/irdma/hw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/irdma/hw.c b/drivers/infiniband/hw/irdma/hw.c index cd0d409844f1..93b71357ba98 100644 --- a/drivers/infiniband/hw/irdma/hw.c +++ b/drivers/infiniband/hw/irdma/hw.c @@ -1099,7 +1099,7 @@ static int irdma_cfg_ceq_vector(struct irdma_pci_f *rf, struct irdma_ceq *iwceq, irq_update_affinity_hint(msix_vec->irq, &msix_vec->mask); if (status) { ibdev_dbg(&rf->iwdev->ibdev, "ERR: ceq irq config fail\n"); - return -EINVAL; + return status; } msix_vec->ceq_id = ceq_id; |