RDMA/ocrdma: Make ocrdma_pma_counters() return void
authorLeon Romanovsky <leonro@mellanox.com>
Tue, 29 Oct 2019 06:27:34 +0000 (08:27 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 6 Nov 2019 19:38:57 +0000 (15:38 -0400)
commit6a42265c9116a2ff8b94b52525c95f177cb15db2
treeb78ffaee870a0d9451b560a1d5d4e7d24412d156
parentbe4a8d46732a45e78aa27c34b58431a917cd644d
RDMA/ocrdma: Make ocrdma_pma_counters() return void

This function always returns 0, so just use void and remove the bogus
checking at the only call site.

Link: https://lore.kernel.org/r/20191029062745.7932-6-leon@kernel.org
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/ocrdma/ocrdma_ah.c
drivers/infiniband/hw/ocrdma/ocrdma_stats.c
drivers/infiniband/hw/ocrdma/ocrdma_stats.h