bnxt_en: check return value of bnxt_hwrm_func_resc_qcaps
authorScott Branden <scott.branden@broadcom.com>
Mon, 22 Mar 2021 07:08:42 +0000 (03:08 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Mar 2021 20:07:28 +0000 (13:07 -0700)
commit15a7deb895497e4c9496b98367e4a0671add03f1
treeeb37b2808f8d9fd443823848062af97129da9f71
parenta2f3835cc68a2222d0ab97862187ed98e65fe682
bnxt_en: check return value of bnxt_hwrm_func_resc_qcaps

Check return value of call to bnxt_hwrm_func_resc_qcaps in
bnxt_hwrm_if_change and return failure on error.

Reviewed-by: Edwin Peer <edwin.peer@broadcom.com>
Signed-off-by: Scott Branden <scott.branden@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c