projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
275757e
)
net: ipx: mark expected switch fall-through
author
Gustavo A. R. Silva
<garsilva@embeddedor.com>
Mon, 16 Oct 2017 21:53:16 +0000
(16:53 -0500)
committer
David 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
patch
|
blob
|
history
diff --git
a/net/ipx/af_ipx.c
b/net/ipx/af_ipx.c
index ac598ec905894b7b2b45ee67aba5c4cfd94fc24c..d21a9d128d3e44cf175cce502d0a5ca3825d338f 100644
(file)
--- a/
net/ipx/af_ipx.c
+++ b/
net/ipx/af_ipx.c
@@
-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;