]> 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)
commit1841ce9fb8764894142d0a1772ac21504a59870d
treeb268d060c3dfabcdff5ac3fe4d12419635c6ef3d
parentf0cf8a1b71cb6ac347dd8d1aeb00bfeb5f038abb
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