]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5deb0b9f5bd814f0169875952f9a3a3b202c78c2
tree2ba5684d5f36d57577a27236adcbbd0ca3ebb1d5
parent089816788e2e6404f2298a517113ac810b7fc6c5
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