OSDN Git Service

bnx2x: Drop redundant callback function casts
authorKees Cook <keescook@chromium.org>
Fri, 15 Nov 2019 05:07:11 +0000 (21:07 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 16 Nov 2019 20:50:57 +0000 (12:50 -0800)
commit86c1fe8857afb379522fd8dabce9d348672c31c1
tree157c9104e6ca2d496b34e116c7bd68d18b901a13
parent2e47cb415f0a0ec6555d71598361e90f8c144fb2
bnx2x: Drop redundant callback function casts

NULL is already "void *" so it will auto-cast in assignments and
initializers. Additionally, all the callbacks for .link_reset,
.config_loopback, .set_link_led, and .phy_specific_func are already
correct. No casting is needed for these, so remove them.

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