]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit30630adf7078367e756d168df91c834935775ed5
tree157c9104e6ca2d496b34e116c7bd68d18b901a13
parent9be21441ec65dd90a34507b63d1c71cbb259a5ca
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