Skip to content

Commit

Permalink
net: ll_temac: Fix compile error
Browse files Browse the repository at this point in the history
Fixes: 1b3fa5c ("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>
  • Loading branch information
Esben Haabendal authored and David S. Miller committed May 24, 2019
1 parent 884714c commit dfb569f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/ethernet/xilinx/ll_temac_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;
Expand Down

0 comments on commit dfb569f

Please sign in to comment.