summaryrefslogtreecommitdiffstats
path: root/drivers/net/wan
diff options
context:
space:
mode:
authorTom Rix <trix@redhat.com>2020-10-19 19:26:07 +0200
committerJakub Kicinski <kuba@kernel.org>2020-10-20 19:28:21 +0200
commit7ebb9db011088f9bd357791f49cb7012e66f29e2 (patch)
tree78c5a7ab7b5beeb5459fc3a02985aecba1688db2 /drivers/net/wan
parentnexthop: Fix performance regression in nexthop deletion (diff)
downloadlinux-7ebb9db011088f9bd357791f49cb7012e66f29e2.tar.xz
linux-7ebb9db011088f9bd357791f49cb7012e66f29e2.zip
net: remove unneeded break
A break is not needed if it is preceded by a return or goto Signed-off-by: Tom Rix <trix@redhat.com> Link: https://lore.kernel.org/r/20201019172607.31622-1-trix@redhat.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/wan')
-rw-r--r--drivers/net/wan/lmc/lmc_proto.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/net/wan/lmc/lmc_proto.c b/drivers/net/wan/lmc/lmc_proto.c
index e8b0b902b424..4e9cc83b615a 100644
--- a/drivers/net/wan/lmc/lmc_proto.c
+++ b/drivers/net/wan/lmc/lmc_proto.c
@@ -89,17 +89,13 @@ __be16 lmc_proto_type(lmc_softc_t *sc, struct sk_buff *skb) /*FOLD00*/
switch(sc->if_type){
case LMC_PPP:
return hdlc_type_trans(skb, sc->lmc_device);
- break;
case LMC_NET:
return htons(ETH_P_802_2);
- break;
case LMC_RAW: /* Packet type for skbuff kind of useless */
return htons(ETH_P_802_2);
- break;
default:
printk(KERN_WARNING "%s: No protocol set for this interface, assuming 802.2 (which is wrong!!)\n", sc->name);
return htons(ETH_P_802_2);
- break;
}
}