mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
net: ll_temac: Fix compile error
Fixes: 1b3fa5cf85
("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>
This commit is contained in:
parent
884714ce16
commit
dfb569f2b9
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue