[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1570631340-5467-1-git-send-email-yangtiezhu@loongson.cn>
Date: Wed, 9 Oct 2019 22:29:00 +0800
From: Tiezhu Yang <yangtiezhu@...ngson.cn>
To: davem@...emloft.net, peppe.cavallaro@...com,
alexandre.torgue@...com, joabreu@...opsys.com
Cc: netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] net: stmmac: Remove break after a return
Since break is not useful after a return, remove it.
Fixes: 3b57de958e2a ("net: stmmac: Support devicetree configs for mcast and ucast filter entries")
Signed-off-by: Tiezhu Yang <yangtiezhu@...ngson.cn>
---
drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c b/drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c
index 3d69da1..d0356fb 100644
--- a/drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c
+++ b/drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c
@@ -130,7 +130,6 @@ static void dwmac1000_set_mchash(void __iomem *ioaddr, u32 *mcfilterbits,
writel(mcfilterbits[0], ioaddr + GMAC_HASH_LOW);
writel(mcfilterbits[1], ioaddr + GMAC_HASH_HIGH);
return;
- break;
case 7:
numhashregs = 4;
break;
@@ -140,7 +139,6 @@ static void dwmac1000_set_mchash(void __iomem *ioaddr, u32 *mcfilterbits,
default:
pr_debug("STMMAC: err in setting multicast filter\n");
return;
- break;
}
for (regs = 0; regs < numhashregs; regs++)
writel(mcfilterbits[regs],
--
2.1.0
Powered by blists - more mailing lists