diff options
author | 2022-10-28 13:36:24 +0100 | |
---|---|---|
committer | 2022-10-31 11:47:31 +0000 | |
commit | 0cf9deb3005f552a3d125436fc8ccedd31a925a9 (patch) | |
tree | df8e323fc68ffec761b5081843e0e8212c219bc8 /drivers/net/ethernet/marvell/mvneta.c | |
parent | Merge branch 'ptp-adjfine' (diff) | |
download | linux-0cf9deb3005f552a3d125436fc8ccedd31a925a9.tar.gz linux-0cf9deb3005f552a3d125436fc8ccedd31a925a9.tar.bz2 linux-0cf9deb3005f552a3d125436fc8ccedd31a925a9.zip |
net: mvneta: Remove unused variable i
Variable i is just being incremented and it's never used anywhere else. The
variable and the increment are redundant so remove it.
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/marvell/mvneta.c')
-rw-r--r-- | drivers/net/ethernet/marvell/mvneta.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/ethernet/marvell/mvneta.c b/drivers/net/ethernet/marvell/mvneta.c index 81dc57a69fd0..05ff3c58087e 100644 --- a/drivers/net/ethernet/marvell/mvneta.c +++ b/drivers/net/ethernet/marvell/mvneta.c @@ -4266,7 +4266,7 @@ static void mvneta_mdio_remove(struct mvneta_port *pp) */ static void mvneta_percpu_elect(struct mvneta_port *pp) { - int elected_cpu = 0, max_cpu, cpu, i = 0; + int elected_cpu = 0, max_cpu, cpu; /* Use the cpu associated to the rxq when it is online, in all * the other cases, use the cpu 0 which can't be offline. @@ -4306,8 +4306,6 @@ static void mvneta_percpu_elect(struct mvneta_port *pp) */ smp_call_function_single(cpu, mvneta_percpu_unmask_interrupt, pp, true); - i++; - } }; |