]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc790d5558b1e47d6a4902f4f7a81f602e83ed51e
treedd0b8d834d7706e39124d5042c3b12f5ef09cbd0
parentd123f53d2199d1a96d287151eb92b8d29a13ec75
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