netdev: broadcom: propagate error code
authorPan Bian <bianpan2016@163.com>
Sat, 3 Dec 2016 09:56:17 +0000 (17:56 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Dec 2016 18:25:38 +0000 (13:25 -0500)
commit89aa8445cd4e8c2556c40d42dd0ceb2cbb96ba78
treedd0b8d834d7706e39124d5042c3b12f5ef09cbd0
parent2279b752ac5c2d3592fe6fe5610c123c2ee8b37c
netdev: broadcom: propagate error code

Function bnxt_hwrm_stat_ctx_alloc() always returns 0, even if the call
to _hwrm_send_message() fails. It may be better to propagate the errors
to the caller of bnxt_hwrm_stat_ctx_alloc().

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=188661

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