diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2019-01-23 02:09:31 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-01-23 12:06:35 -0500 |
commit | f79e3365bc1faeda0e8e1c8e7e332631a43ebdba (patch) | |
tree | cea02ebafb66a1ddbac5ce3fab97327aba65b8cf /net/tipc/socket.c | |
parent | f116465385344294edda66970734a26f5dd59a93 (diff) |
tipc: mark expected switch fall-throughs
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
This patch fixes the following warnings:
net/tipc/link.c:1125:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
net/tipc/socket.c:736:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
net/tipc/socket.c:2418:7: warning: this statement may fall through [-Wimplicit-fallthrough=]
Warning level 3 was used: -Wimplicit-fallthrough=3
This patch is part of the ongoing efforts to enabling
-Wimplicit-fallthrough.
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/socket.c')
-rw-r--r-- | net/tipc/socket.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/tipc/socket.c b/net/tipc/socket.c index 1217c90a363b..8fc5acd4820d 100644 --- a/net/tipc/socket.c +++ b/net/tipc/socket.c | |||
@@ -735,7 +735,7 @@ static __poll_t tipc_poll(struct file *file, struct socket *sock, | |||
735 | case TIPC_CONNECTING: | 735 | case TIPC_CONNECTING: |
736 | if (!tsk->cong_link_cnt && !tsk_conn_cong(tsk)) | 736 | if (!tsk->cong_link_cnt && !tsk_conn_cong(tsk)) |
737 | revents |= EPOLLOUT; | 737 | revents |= EPOLLOUT; |
738 | /* fall thru' */ | 738 | /* fall through */ |
739 | case TIPC_LISTEN: | 739 | case TIPC_LISTEN: |
740 | if (!skb_queue_empty(&sk->sk_receive_queue)) | 740 | if (!skb_queue_empty(&sk->sk_receive_queue)) |
741 | revents |= EPOLLIN | EPOLLRDNORM; | 741 | revents |= EPOLLIN | EPOLLRDNORM; |
@@ -2416,7 +2416,7 @@ static int tipc_connect(struct socket *sock, struct sockaddr *dest, | |||
2416 | * case is EINPROGRESS, rather than EALREADY. | 2416 | * case is EINPROGRESS, rather than EALREADY. |
2417 | */ | 2417 | */ |
2418 | res = -EINPROGRESS; | 2418 | res = -EINPROGRESS; |
2419 | /* fall thru' */ | 2419 | /* fall through */ |
2420 | case TIPC_CONNECTING: | 2420 | case TIPC_CONNECTING: |
2421 | if (!timeout) { | 2421 | if (!timeout) { |
2422 | if (previous == TIPC_CONNECTING) | 2422 | if (previous == TIPC_CONNECTING) |