diff options
author | Kees Cook <keescook@chromium.org> | 2019-11-14 21:07:13 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-11-16 12:50:57 -0800 |
commit | 3e19d1f2654ffd0e379c0f4ba30424bb57ed8acc (patch) | |
tree | 361614091e8288e4af96d61c4a4844e90632876a /drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.h | |
parent | bnx2x: Remove read_status_t function casts (diff) | |
download | linux-dev-3e19d1f2654ffd0e379c0f4ba30424bb57ed8acc.tar.xz linux-dev-3e19d1f2654ffd0e379c0f4ba30424bb57ed8acc.zip |
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>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.h')
-rw-r--r-- | drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.h b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.h index 7115f5025664..d31d15c78a17 100644 --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.h +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.h @@ -127,8 +127,8 @@ struct link_vars; struct link_params; struct bnx2x_phy; -typedef u8 (*config_init_t)(struct bnx2x_phy *phy, struct link_params *params, - struct link_vars *vars); +typedef void (*config_init_t)(struct bnx2x_phy *phy, struct link_params *params, + struct link_vars *vars); typedef u8 (*read_status_t)(struct bnx2x_phy *phy, struct link_params *params, struct link_vars *vars); typedef void (*link_reset_t)(struct bnx2x_phy *phy, |