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>
This commit is contained in:
Gustavo A. R. Silva 2017-10-20 12:05:30 -05:00 committed by David S. Miller
parent 3fa5f11de1
commit 110af3acb8
1 changed files with 1 additions and 0 deletions

View File

@ -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;