OSDN Git Service

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)
commit3e19d1f2654ffd0e379c0f4ba30424bb57ed8acc
tree361614091e8288e4af96d61c4a4844e90632876a
parent2c855d73f2f6107f5b8ebc45f8b934bf7f4419e0
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