diff options
Diffstat (limited to 'net/netrom/nr_route.c')
-rw-r--r-- | net/netrom/nr_route.c | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/net/netrom/nr_route.c b/net/netrom/nr_route.c index 915a87b..44059d0 100644 --- a/net/netrom/nr_route.c +++ b/net/netrom/nr_route.c @@ -37,7 +37,6 @@ #include <linux/spinlock.h> #include <net/netrom.h> #include <linux/seq_file.h> -#include <linux/export.h> static unsigned int nr_neigh_no = 1; @@ -258,12 +257,9 @@ static int __must_check nr_add_node(ax25_address *nr, const char *mnemonic, case 3: if (nr_node->routes[1].quality > nr_node->routes[0].quality) { switch (nr_node->which) { - case 0: - nr_node->which = 1; - break; - case 1: - nr_node->which = 0; - break; + case 0: nr_node->which = 1; break; + case 1: nr_node->which = 0; break; + default: break; } nr_route = nr_node->routes[0]; nr_node->routes[0] = nr_node->routes[1]; @@ -509,13 +505,12 @@ static int nr_dec_obs(void) s->count--; switch (i) { - case 0: - s->routes[0] = s->routes[1]; - /* Fallthrough */ - case 1: - s->routes[1] = s->routes[2]; - case 2: - break; + case 0: + s->routes[0] = s->routes[1]; + case 1: + s->routes[1] = s->routes[2]; + case 2: + break; } break; |