bnxt_en: Simplify error checking in the SR-IOV message forwarding functions.
authorMichael Chan <michael.chan@broadcom.com>
Fri, 30 Aug 2019 03:54:47 +0000 (23:54 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Aug 2019 21:02:18 +0000 (14:02 -0700)
commita798302d56f56fb7ad6a01f64f495aeafeb6c0f0
treeb268d060c3dfabcdff5ac3fe4d12419635c6ef3d
parentd4f1420d365633490aa134abfe408453d1c7c238
bnxt_en: Simplify error checking in the SR-IOV message forwarding functions.

There are 4 functions handling message forwarding for SR-IOV.  They
check for non-zero firmware response code and then return -1.  There
is no need to do this anymore.  The main messaging function will
now return standard error code.  Since we don't need to examine the
response, we can use the hwrm_send_message() variant which will
take the mutex automatically.

Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c