Skip to content

Commit 0cea8e2

Browse files
GustavoARSilvadavem330
authored andcommitted
net: x25: 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>
1 parent 110af3a commit 0cea8e2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

net/x25/x25_facilities.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ int x25_parse_facilities(struct sk_buff *skb, struct x25_facilities *facilities,
103103
*vc_fac_mask |= X25_MASK_REVERSE;
104104
break;
105105
}
106-
106+
/*fall through */
107107
case X25_FAC_THROUGHPUT:
108108
facilities->throughput = p[1];
109109
*vc_fac_mask |= X25_MASK_THROUGHPUT;

net/x25/x25_in.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,7 @@ static int x25_state4_machine(struct sock *sk, struct sk_buff *skb, int frametyp
345345

346346
case X25_RESET_REQUEST:
347347
x25_write_internal(sk, X25_RESET_CONFIRMATION);
348+
/* fall through */
348349
case X25_RESET_CONFIRMATION: {
349350
x25_stop_timer(sk);
350351
x25->condition = 0x00;

0 commit comments

Comments
 (0)