Commit 5e96cd33 authored by Tiezhu Yang's avatar Tiezhu Yang Committed by Jakub Kicinski

net: stmmac: Remove break after a return

Since break is not useful after a return, remove it.
Signed-off-by: default avatarTiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: default avatarJakub Kicinski <jakub.kicinski@netronome.com>
parent 75738228
...@@ -130,7 +130,6 @@ static void dwmac1000_set_mchash(void __iomem *ioaddr, u32 *mcfilterbits, ...@@ -130,7 +130,6 @@ static void dwmac1000_set_mchash(void __iomem *ioaddr, u32 *mcfilterbits,
writel(mcfilterbits[0], ioaddr + GMAC_HASH_LOW); writel(mcfilterbits[0], ioaddr + GMAC_HASH_LOW);
writel(mcfilterbits[1], ioaddr + GMAC_HASH_HIGH); writel(mcfilterbits[1], ioaddr + GMAC_HASH_HIGH);
return; return;
break;
case 7: case 7:
numhashregs = 4; numhashregs = 4;
break; break;
...@@ -140,7 +139,6 @@ static void dwmac1000_set_mchash(void __iomem *ioaddr, u32 *mcfilterbits, ...@@ -140,7 +139,6 @@ static void dwmac1000_set_mchash(void __iomem *ioaddr, u32 *mcfilterbits,
default: default:
pr_debug("STMMAC: err in setting multicast filter\n"); pr_debug("STMMAC: err in setting multicast filter\n");
return; return;
break;
} }
for (regs = 0; regs < numhashregs; regs++) for (regs = 0; regs < numhashregs; regs++)
writel(mcfilterbits[regs], writel(mcfilterbits[regs],
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment