RDMA/efa: Be consistent with success flow return value
authorGal Pressman <galpress@amazon.com>
Thu, 13 Jun 2019 09:10:13 +0000 (12:10 +0300)
committerDoug Ledford <dledford@redhat.com>
Fri, 21 Jun 2019 15:52:44 +0000 (11:52 -0400)
commitb41f75724ab8aeeba1001e63c31db8623432f001
tree8b89e0abd797575d5158622299c15fb18c283518
parent40ddb3f020834f9afb7aab31385994811f4db259
RDMA/efa: Be consistent with success flow return value

The EFA driver is written with success oriented flows in mind, meaning
that functions should mostly end with a return 0 statement.
Error flows return their error value on their own instead of assuming
that the function will return the error at the end.

This commit fixes a bunch of functions that were not aligned with this
behavior.

Reviewed-by: Firas JahJah <firasj@amazon.com>
Reviewed-by: Yossi Leybovich <sleybo@amazon.com>
Signed-off-by: Gal Pressman <galpress@amazon.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/efa/efa_com_cmd.c
drivers/infiniband/hw/efa/efa_main.c
drivers/infiniband/hw/efa/efa_verbs.c