Skip to content

Commit

Permalink
decnet: Fix fall-through warnings for Clang
Browse files Browse the repository at this point in the history
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: KSPP#115
Signed-off-by: Gustavo A. R. Silva <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
GustavoARSilva authored and davem330 committed Mar 10, 2021
1 parent 2a86b4a commit 4cdbe58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/decnet/dn_route.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4cdbe58

Please sign in to comment.