Skip to content

Commit

Permalink
net: x25: mark expected switch fall-throughs
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Gustavo A. R. Silva authored and David S. Miller committed Oct 22, 2017
1 parent 110af3a commit 0cea8e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion net/x25/x25_facilities.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ int x25_parse_facilities(struct sk_buff *skb, struct x25_facilities *facilities,
*vc_fac_mask |= X25_MASK_REVERSE;
break;
}

/*fall through */
case X25_FAC_THROUGHPUT:
facilities->throughput = p[1];
*vc_fac_mask |= X25_MASK_THROUGHPUT;
Expand Down
1 change: 1 addition & 0 deletions net/x25/x25_in.c
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,7 @@ static int x25_state4_machine(struct sock *sk, struct sk_buff *skb, int frametyp

case X25_RESET_REQUEST:
x25_write_internal(sk, X25_RESET_CONFIRMATION);
/* fall through */
case X25_RESET_CONFIRMATION: {
x25_stop_timer(sk);
x25->condition = 0x00;
Expand Down

0 comments on commit 0cea8e2

Please sign in to comment.