summaryrefslogtreecommitdiffstats
path: root/net/netrom/af_netrom.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2011-11-25 00:54:10 +0100
committerDavid S. Miller <davem@davemloft.net>2011-11-29 06:23:13 +0100
commit0f20f5a7de1ee48ced284e960828017cc2f5d52b (patch)
treec01b1f5e8f6d9756553fb1dbea60480aa92f69ff /net/netrom/af_netrom.c
parentNET: NETROM: Cleanup argument SIOCADDRT ioctl argument checking. (diff)
downloadlinux-0f20f5a7de1ee48ced284e960828017cc2f5d52b.tar.xz
linux-0f20f5a7de1ee48ced284e960828017cc2f5d52b.zip
NET: NETROM: Fix formatting.
The Linux coding style wants the return statement on its own line. Signed-off-by: Ralf Baechle <ralf@linux-mips.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netrom/af_netrom.c')
-rw-r--r--net/netrom/af_netrom.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/netrom/af_netrom.c b/net/netrom/af_netrom.c
index 732152f718e0..c329b474eace 100644
--- a/net/netrom/af_netrom.c
+++ b/net/netrom/af_netrom.c
@@ -1244,7 +1244,8 @@ static int nr_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
case SIOCADDRT:
case SIOCDELRT:
case SIOCNRDECOBS:
- if (!capable(CAP_NET_ADMIN)) return -EPERM;
+ if (!capable(CAP_NET_ADMIN))
+ return -EPERM;
return nr_rt_ioctl(cmd, argp);
default: