Skip to content

Commit 110af3a

Browse files
GustavoARSilvadavem330
authored andcommitted
net: af_unix: mark expected switch fall-through
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 3fa5f11 commit 110af3a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/unix/af_unix.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -814,6 +814,7 @@ static int unix_create(struct net *net, struct socket *sock, int protocol,
814814
*/
815815
case SOCK_RAW:
816816
sock->type = SOCK_DGRAM;
817+
/* fall through */
817818
case SOCK_DGRAM:
818819
sock->ops = &unix_dgram_ops;
819820
break;

0 commit comments

Comments
 (0)