diff options
author | Gustavo A. R. Silva <garsilva@embeddedor.com> | 2017-10-19 13:03:51 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-22 02:02:26 +0100 |
commit | a05b8c43ac3cc156600a60bf6dcd30109bd42a73 (patch) | |
tree | 5ac763f5d4ad94ce68942c980389674ce43d3946 /net/rose/rose_route.c | |
parent | 279badc2a85be83e0187b8c566e3b476b76a87a2 (diff) |
net: rose: mark expected switch fall-throughs
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rose/rose_route.c')
-rw-r--r-- | net/rose/rose_route.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/rose/rose_route.c b/net/rose/rose_route.c index 65921cd10323..8ca3124df83f 100644 --- a/net/rose/rose_route.c +++ b/net/rose/rose_route.c @@ -346,6 +346,7 @@ static int rose_del_node(struct rose_route_struct *rose_route, case 0: rose_node->neighbour[0] = rose_node->neighbour[1]; + /* fall through */ case 1: rose_node->neighbour[1] = rose_node->neighbour[2]; @@ -507,6 +508,7 @@ void rose_rt_device_down(struct net_device *dev) switch (i) { case 0: t->neighbour[0] = t->neighbour[1]; + /* fall through */ case 1: t->neighbour[1] = t->neighbour[2]; case 2: |