mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
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:
parent
3fa5f11de1
commit
110af3acb8
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue