Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4e831836 authored by Sascha Hauer's avatar Sascha Hauer Committed by David S. Miller
Browse files

fec: refactor set_multicast_list() to make it more readable

parent 22f6b860
Loading
Loading
Loading
Loading
+51 −48
Original line number Diff line number Diff line
@@ -1517,7 +1517,9 @@ static void set_multicast_list(struct net_device *dev)
		tmp = readl(fep->hwp + FEC_R_CNTRL);
		tmp |= 0x8;
		writel(tmp, fep->hwp + FEC_R_CNTRL);
	} else {
		return;
	}

	tmp = readl(fep->hwp + FEC_R_CNTRL);
	tmp &= ~0x8;
	writel(tmp, fep->hwp + FEC_R_CNTRL);
@@ -1528,7 +1530,10 @@ static void set_multicast_list(struct net_device *dev)
		 */
		writel(0xffffffff, fep->hwp + FEC_GRP_HASH_TABLE_HIGH);
		writel(0xffffffff, fep->hwp + FEC_GRP_HASH_TABLE_LOW);
		} else {

		return;
	}

	/* Clear filter and add the addresses in hash register
	 */
	writel(0, fep->hwp + FEC_GRP_HASH_TABLE_HIGH);
@@ -1568,8 +1573,6 @@ static void set_multicast_list(struct net_device *dev)
		}
	}
}
	}
}

/* Set a MAC change in hardware. */
static void