bnx2x: Remove hw_reset_t function casts
authorKees Cook <keescook@chromium.org>
Fri, 15 Nov 2019 05:07:15 +0000 (21:07 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 16 Nov 2019 20:50:57 +0000 (12:50 -0800)
commit548e5ffe2e11d10c54f8425019900c87788fd838
tree2ba5684d5f36d57577a27236adcbbd0ca3ebb1d5
parent26658f6bdb65ff192ff9b4b7ed9f3408d74ceeea
bnx2x: Remove hw_reset_t function casts

All .rw_reset callbacks except bnx2x_84833_hw_reset_phy() use a
void return type. No callers of .hw_reset check a return value and
bnx2x_84833_hw_reset_phy() unconditionally returns 0. Remove all
hw_reset_t casts and fix the return type to void.

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c