commit | 89aa8445cd4e8c2556c40d42dd0ceb2cbb96ba78 | [log] [tgz] |
---|---|---|
author | Pan Bian <bianpan2016@163.com> | Sat Dec 03 17:56:17 2016 +0800 |
committer | David S. Miller <davem@davemloft.net> | Mon Dec 05 13:25:38 2016 -0500 |
tree | dd0b8d834d7706e39124d5042c3b12f5ef09cbd0 | |
parent | 2279b752ac5c2d3592fe6fe5610c123c2ee8b37c [diff] |
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>