diff options
author | Esben Haabendal <esben@geanix.com> | 2019-05-24 07:24:42 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-05-23 22:27:52 -0700 |
commit | dfb569f2b96e2075bdf80883677d40d86f6b19db (patch) | |
tree | 420bf6c216a0c2b06cb60a1259fbaf781f93d09d /drivers/net/ethernet/xilinx/ll_temac_main.c | |
parent | 884714ce1698b2d0b9aa083d5fa723c567c6d8ab (diff) | |
download | linux-dfb569f2b96e2075bdf80883677d40d86f6b19db.tar.bz2 |
net: ll_temac: Fix compile error
Fixes: 1b3fa5cf859b ("net: ll_temac: Cleanup multicast filter on change")
Signed-off-by: Esben Haabendal <esben@geanix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/xilinx/ll_temac_main.c')
-rw-r--r-- | drivers/net/ethernet/xilinx/ll_temac_main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/xilinx/ll_temac_main.c b/drivers/net/ethernet/xilinx/ll_temac_main.c index 22a52b884821..21c1b4322ea7 100644 --- a/drivers/net/ethernet/xilinx/ll_temac_main.c +++ b/drivers/net/ethernet/xilinx/ll_temac_main.c @@ -452,7 +452,7 @@ static void temac_set_multicast_list(struct net_device *ndev) { struct temac_local *lp = netdev_priv(ndev); u32 multi_addr_msw, multi_addr_lsw; - int i; + int i = 0; unsigned long flags; bool promisc_mode_disabled = false; @@ -468,7 +468,6 @@ static void temac_set_multicast_list(struct net_device *ndev) if (!netdev_mc_empty(ndev)) { struct netdev_hw_addr *ha; - i = 0; netdev_for_each_mc_addr(ha, ndev) { if (WARN_ON(i >= MULTICAST_CAM_TABLE_NUM)) break; |