net: ipx: mark expected switch fall-through
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Mon, 16 Oct 2017 21:53:16 +0000 (16:53 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Oct 2017 13:13:08 +0000 (14:13 +0100)
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>
net/ipx/af_ipx.c

index ac598ec..d21a9d1 100644 (file)
@@ -1867,6 +1867,7 @@ static int ipx_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
                rc = -EPERM;
                if (!capable(CAP_NET_ADMIN))
                        break;
+               /* fall through */
        case SIOCGIFADDR:
                rc = ipxitf_ioctl(cmd, argp);
                break;