]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
net: dsa: bcm_sf2: fix semicolon.cocci warnings
authorkbuild test robot <fengguang.wu@intel.com>
Wed, 7 Nov 2018 00:50:34 +0000 (08:50 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Nov 2018 06:14:05 +0000 (22:14 -0800)
drivers/net/dsa/bcm_sf2_cfp.c:1168:2-3: Unneeded semicolon
drivers/net/dsa/bcm_sf2_cfp.c:532:2-3: Unneeded semicolon

 Remove unneeded semicolon.

Generated by: scripts/coccinelle/misc/semicolon.cocci

Fixes: ae7a5aff783c ("net: dsa: bcm_sf2: Keep copy of inserted rules")
CC: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/bcm_sf2_cfp.c

index 8f734abde7b3ba525baddc627f4c93c473435827..e14663ab6dbc46c07e0518d11c490b1c43a48280 100644 (file)
@@ -529,7 +529,7 @@ static struct cfp_rule *bcm_sf2_cfp_rule_find(struct bcm_sf2_priv *priv,
        list_for_each_entry(rule, &priv->cfp.rules_list, next) {
                if (rule->port == port && rule->fs.location == location)
                        break;
-       };
+       }
 
        return rule;
 }
@@ -1165,7 +1165,7 @@ int bcm_sf2_cfp_resume(struct dsa_switch *ds)
                        dev_err(ds->dev, "failed to restore rule\n");
                        return ret;
                }
-       };
+       }
 
        return ret;
 }