Skip to content

Commit

Permalink
net: af_unix: mark expected switch fall-through
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
GustavoARSilva authored and davem330 committed Oct 22, 2017
1 parent 3fa5f11 commit 110af3a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/unix/af_unix.c
Original file line number Diff line number Diff line change
Expand Up @@ -814,6 +814,7 @@ static int unix_create(struct net *net, struct socket *sock, int protocol,
*/
case SOCK_RAW:
sock->type = SOCK_DGRAM;
/* fall through */
case SOCK_DGRAM:
sock->ops = &unix_dgram_ops;
break;
Expand Down

0 comments on commit 110af3a

Please sign in to comment.