RDMA/irdma: Remove excess error variables
authorShiraz Saleem <shiraz.saleem@intel.com>
Thu, 17 Feb 2022 15:18:51 +0000 (09:18 -0600)
committerJason Gunthorpe <jgg@nvidia.com>
Wed, 23 Feb 2022 19:24:19 +0000 (15:24 -0400)
commit2322d17abf0a6c90251e8c0e419620c537e2875f
tree037f466e7ceedcc921740ca86166516cc6a8e91c
parent45225a93ccc01a93f7fbffef4fcb2d9c649fe71e
RDMA/irdma: Remove excess error variables

As irdma_status_code is replaced with an int, there is no need for two
variables to hold error codes.

Remove the excess variable in functions where this occurs.  Also, remove
any redundant initializations which are no longer needed.

Link: https://lore.kernel.org/r/20220217151851.1518-4-shiraz.saleem@intel.com
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/irdma/hw.c
drivers/infiniband/hw/irdma/verbs.c