Skip to content

Commit

Permalink
net: ipx: 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 <garsilva@embeddedor.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Gustavo A. R. Silva authored and David S. Miller committed Oct 18, 2017
1 parent 275757e commit d4f4da3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/ipx/af_ipx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d4f4da3

Please sign in to comment.