]> Git Repo - linux.git/commitdiff
net: rose: mark expected switch fall-throughs
authorGustavo A. R. Silva <[email protected]>
Thu, 19 Oct 2017 18:03:51 +0000 (13:03 -0500)
committerDavid S. Miller <[email protected]>
Sun, 22 Oct 2017 01:02:26 +0000 (02:02 +0100)
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Signed-off-by: Gustavo A. R. Silva <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
net/rose/rose_in.c
net/rose/rose_route.c

index 0a6394754e81db5469906b92f4b40046444bdb42..9bbbfe325c5a31c447bc04ae1cf999683247caf3 100644 (file)
@@ -219,6 +219,7 @@ static int rose_state4_machine(struct sock *sk, struct sk_buff *skb, int framety
        switch (frametype) {
        case ROSE_RESET_REQUEST:
                rose_write_internal(sk, ROSE_RESET_CONFIRMATION);
+               /* fall through */
        case ROSE_RESET_CONFIRMATION:
                rose_stop_timer(sk);
                rose_start_idletimer(sk);
index 65921cd103233e4082dc1faa93d5660caaabe774..8ca3124df83fdae0af653a1dafd7737a9893100e 100644 (file)
@@ -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:
This page took 0.080647 seconds and 4 git commands to generate.