Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a05b8c43 authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by David S. Miller
Browse files

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: default avatarGustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 279badc2
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);
+2 −0
Original line number Diff line number Diff line
@@ -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: