diff options
author | YueHaibing <yuehaibing@huawei.com> | 2019-02-18 07:19:54 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-18 19:47:32 -0500 |
commit | c9b747dbc2036c917b1067fbb78dc38b105c4454 (patch) | |
tree | 9eb8aeb86da7d3de32072c22f3173baa9ab47fca | |
parent | 778a57d93e28b10efc0fc086b20dacedcc503f48 (diff) |
bnx2x: Remove set but not used variable 'mfw_vn'
Fixes gcc '-Wunused-but-set-variable' warning:
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c: In function 'bnx2x_get_hwinfo':
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c:11940:10: warning:
variable 'mfw_vn' set but not used [-Wunused-but-set-variable]
It's never used since introduction.
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Sudarsana Reddy Kalluru <skalluru@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c index 0cec82450e19..626b491f7674 100644 --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c | |||
@@ -11998,7 +11998,7 @@ static void validate_set_si_mode(struct bnx2x *bp) | |||
11998 | static int bnx2x_get_hwinfo(struct bnx2x *bp) | 11998 | static int bnx2x_get_hwinfo(struct bnx2x *bp) |
11999 | { | 11999 | { |
12000 | int /*abs*/func = BP_ABS_FUNC(bp); | 12000 | int /*abs*/func = BP_ABS_FUNC(bp); |
12001 | int vn, mfw_vn; | 12001 | int vn; |
12002 | u32 val = 0, val2 = 0; | 12002 | u32 val = 0, val2 = 0; |
12003 | int rc = 0; | 12003 | int rc = 0; |
12004 | 12004 | ||
@@ -12083,12 +12083,10 @@ static int bnx2x_get_hwinfo(struct bnx2x *bp) | |||
12083 | /* | 12083 | /* |
12084 | * Initialize MF configuration | 12084 | * Initialize MF configuration |
12085 | */ | 12085 | */ |
12086 | |||
12087 | bp->mf_ov = 0; | 12086 | bp->mf_ov = 0; |
12088 | bp->mf_mode = 0; | 12087 | bp->mf_mode = 0; |
12089 | bp->mf_sub_mode = 0; | 12088 | bp->mf_sub_mode = 0; |
12090 | vn = BP_VN(bp); | 12089 | vn = BP_VN(bp); |
12091 | mfw_vn = BP_FW_MB_IDX(bp); | ||
12092 | 12090 | ||
12093 | if (!CHIP_IS_E1(bp) && !BP_NOMCP(bp)) { | 12091 | if (!CHIP_IS_E1(bp) && !BP_NOMCP(bp)) { |
12094 | BNX2X_DEV_INFO("shmem2base 0x%x, size %d, mfcfg offset %d\n", | 12092 | BNX2X_DEV_INFO("shmem2base 0x%x, size %d, mfcfg offset %d\n", |