net: stmmac: Remove break after a return
authorTiezhu Yang <yangtiezhu@loongson.cn>
Wed, 9 Oct 2019 14:29:00 +0000 (22:29 +0800)
committerJakub Kicinski <jakub.kicinski@netronome.com>
Thu, 10 Oct 2019 04:12:30 +0000 (21:12 -0700)
Since break is not useful after a return, remove it.

Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c

index 3d69da112625ec672bc57bc2237ce780ced46b7e..d0356fbd1e4309056919926a9aa677dc9586af2a 100644 (file)
@@ -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],