summaryrefslogtreecommitdiffstats
path: root/net/decnet
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavoars@kernel.org>2021-03-09 23:38:11 -0600
committerDavid S. Miller <davem@davemloft.net>2021-03-10 12:45:15 -0800
commit4cdbe58b4b3c98153790e0a2dcb1b0ec97d03c9a (patch)
tree1bafc42e7c035f2a3dc126013c0a71daee549518 /net/decnet
parent2a86b4a7f7ff8413490134104d7bdad7a693deaf (diff)
downloadlinux-4cdbe58b4b3c98153790e0a2dcb1b0ec97d03c9a.tar.gz
linux-4cdbe58b4b3c98153790e0a2dcb1b0ec97d03c9a.tar.bz2
linux-4cdbe58b4b3c98153790e0a2dcb1b0ec97d03c9a.zip
decnet: Fix fall-through warnings for Clang
In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning by explicitly adding a break statement instead of letting the code fall through to the next case. Link: https://github.com/KSPP/linux/issues/115 Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/decnet')
-rw-r--r--net/decnet/dn_route.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/decnet/dn_route.c b/net/decnet/dn_route.c
index 2193ae529e75..37c90c1fdc93 100644
--- a/net/decnet/dn_route.c
+++ b/net/decnet/dn_route.c
@@ -1407,7 +1407,7 @@ static int dn_route_input_slow(struct sk_buff *skb)
flags |= RTCF_DOREDIRECT;
local_src = DN_FIB_RES_PREFSRC(res);
-
+ break;
case RTN_BLACKHOLE:
case RTN_UNREACHABLE:
break;