summaryrefslogtreecommitdiffstats
path: root/net/unix
diff options
context:
space:
mode:
authorGustavo A. R. Silva <garsilva@embeddedor.com>2017-10-20 19:05:30 +0200
committerDavid S. Miller <davem@davemloft.net>2017-10-22 04:07:50 +0200
commit110af3acb8cfd79dcb5676a01e07cb2b6afa4c04 (patch)
tree0ecb26770ccf2d086f5de9c96dd4c9bf6e2fbfa4 /net/unix
parentgeneve: Get rid of is_all_zero(), streamline is_tnl_info_zero() (diff)
downloadlinux-110af3acb8cfd79dcb5676a01e07cb2b6afa4c04.tar.xz
linux-110af3acb8cfd79dcb5676a01e07cb2b6afa4c04.zip
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>
Diffstat (limited to 'net/unix')
-rw-r--r--net/unix/af_unix.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c
index 7f46bab4ce5c..a9ee634f3c42 100644
--- a/net/unix/af_unix.c
+++ b/net/unix/af_unix.c
@@ -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;