]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2x: Remove config_init_t function casts
authorKees Cook <keescook@chromium.org>
Fri, 15 Nov 2019 05:07:13 +0000 (21:07 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 16 Nov 2019 20:50:57 +0000 (12:50 -0800)
commitcf0a993130b3e5561cd808d555c3b607054c43ab
tree361614091e8288e4af96d61c4a4844e90632876a
parent845e8623ccd8dc05352d1edcbea923ae26b8c713
bnx2x: Remove config_init_t function casts

No callers of .config_init check return values. Remove the casting and
change all callbacks to have the correct function prototype.

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
drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.h