Commit 7f8901b7 authored by Miaohe Lin's avatar Miaohe Lin Committed by David S. Miller

net: tipc: Convert to use the preferred fallthrough macro

Convert the uses of fallthrough comments to fallthrough macro.
Signed-off-by: default avatarMiaohe Lin <linmiaohe@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 396fc59e
...@@ -652,7 +652,7 @@ static int tipc_l2_device_event(struct notifier_block *nb, unsigned long evt, ...@@ -652,7 +652,7 @@ static int tipc_l2_device_event(struct notifier_block *nb, unsigned long evt,
test_and_set_bit_lock(0, &b->up); test_and_set_bit_lock(0, &b->up);
break; break;
} }
/* fall through */ fallthrough;
case NETDEV_GOING_DOWN: case NETDEV_GOING_DOWN:
clear_bit_unlock(0, &b->up); clear_bit_unlock(0, &b->up);
tipc_reset_bearer(net, b); tipc_reset_bearer(net, b);
......
...@@ -1239,7 +1239,7 @@ static bool tipc_data_input(struct tipc_link *l, struct sk_buff *skb, ...@@ -1239,7 +1239,7 @@ static bool tipc_data_input(struct tipc_link *l, struct sk_buff *skb,
skb_queue_tail(mc_inputq, skb); skb_queue_tail(mc_inputq, skb);
return true; return true;
} }
/* fall through */ fallthrough;
case CONN_MANAGER: case CONN_MANAGER:
skb_queue_tail(inputq, skb); skb_queue_tail(inputq, skb);
return true; return true;
......
...@@ -783,7 +783,7 @@ static __poll_t tipc_poll(struct file *file, struct socket *sock, ...@@ -783,7 +783,7 @@ static __poll_t tipc_poll(struct file *file, struct socket *sock,
case TIPC_ESTABLISHED: case TIPC_ESTABLISHED:
if (!tsk->cong_link_cnt && !tsk_conn_cong(tsk)) if (!tsk->cong_link_cnt && !tsk_conn_cong(tsk))
revents |= EPOLLOUT; revents |= EPOLLOUT;
/* fall through */ fallthrough;
case TIPC_LISTEN: case TIPC_LISTEN:
case TIPC_CONNECTING: case TIPC_CONNECTING:
if (!skb_queue_empty_lockless(&sk->sk_receive_queue)) if (!skb_queue_empty_lockless(&sk->sk_receive_queue))
...@@ -2597,7 +2597,7 @@ static int tipc_connect(struct socket *sock, struct sockaddr *dest, ...@@ -2597,7 +2597,7 @@ static int tipc_connect(struct socket *sock, struct sockaddr *dest,
* case is EINPROGRESS, rather than EALREADY. * case is EINPROGRESS, rather than EALREADY.
*/ */
res = -EINPROGRESS; res = -EINPROGRESS;
/* fall through */ fallthrough;
case TIPC_CONNECTING: case TIPC_CONNECTING:
if (!timeout) { if (!timeout) {
if (previous == TIPC_CONNECTING) if (previous == TIPC_CONNECTING)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment