]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite1e3db914ccd8e5b0a2821685a4dcc1e5a9f70c4
treeb268d060c3dfabcdff5ac3fe4d12419635c6ef3d
parent24805e412acf83b2c7120dd0f3f4645cbc0b2461
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