summaryrefslogtreecommitdiffstats
path: root/net/netrom
diff options
context:
space:
mode:
authorGustavo A. R. Silva <garsilva@embeddedor.com>2017-10-27 00:51:08 -0500
committerDavid S. Miller <davem@davemloft.net>2017-11-01 20:46:41 +0900
commit31f74f0f4e8dfe5b30ff59d9a38a370fbb725f38 (patch)
treee390cf523e2e462e2fc3752bc93ca8e024c955ab /net/netrom
parent4c31606920bab227de10d2c9bf9b4dd8d4327638 (diff)
downloadlinux-31f74f0f4e8dfe5b30ff59d9a38a370fbb725f38.tar.gz
linux-31f74f0f4e8dfe5b30ff59d9a38a370fbb725f38.tar.bz2
linux-31f74f0f4e8dfe5b30ff59d9a38a370fbb725f38.zip
net: netrom: nr_route: 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/netrom')
-rw-r--r--net/netrom/nr_route.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/netrom/nr_route.c b/net/netrom/nr_route.c
index fba4b4c8efaf..75e6ba970fde 100644
--- a/net/netrom/nr_route.c
+++ b/net/netrom/nr_route.c
@@ -265,6 +265,7 @@ static int __must_check nr_add_node(ax25_address *nr, const char *mnemonic,
case 3:
re_sort_routes(nr_node, 0, 1);
re_sort_routes(nr_node, 1, 2);
+ /* fall through */
case 2:
re_sort_routes(nr_node, 0, 1);
case 1:
@@ -357,6 +358,7 @@ static int nr_del_node(ax25_address *callsign, ax25_address *neighbour, struct n
switch (i) {
case 0:
nr_node->routes[0] = nr_node->routes[1];
+ /* fall through */
case 1:
nr_node->routes[1] = nr_node->routes[2];
case 2:
@@ -526,6 +528,7 @@ void nr_rt_device_down(struct net_device *dev)
switch (i) {
case 0:
t->routes[0] = t->routes[1];
+ /* fall through */
case 1:
t->routes[1] = t->routes[2];
case 2: