Skip to content

Commit

Permalink
tipc: 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.

Warning level 2 was used: -Wimplicit-fallthrough=2

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Acked-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Gustavo A. R. Silva authored and David S. Miller committed Jul 5, 2018
1 parent dfecc75 commit c53e0c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions net/tipc/bearer.c
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,7 @@ static int tipc_l2_device_event(struct notifier_block *nb, unsigned long evt,
case NETDEV_CHANGE:
if (netif_carrier_ok(dev))
break;
/* else: fall through */
case NETDEV_UP:
test_and_set_bit_lock(0, &b->up);
break;
Expand Down
1 change: 1 addition & 0 deletions net/tipc/link.c
Original file line number Diff line number Diff line change
Expand Up @@ -1063,6 +1063,7 @@ static bool tipc_data_input(struct tipc_link *l, struct sk_buff *skb,
skb_queue_tail(mc_inputq, skb);
return true;
}
/* else: fall through */
case CONN_MANAGER:
skb_queue_tail(inputq, skb);
return true;
Expand Down

0 comments on commit c53e0c7

Please sign in to comment.