aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWang Yufen <wangyufen@huawei.com>2014-02-17 03:53:32 -0500
committerDavid S. Miller <davem@davemloft.net>2014-02-17 16:57:28 -0500
commit23b45672911472bb7c34aa04a34e77c894f0e6cb (patch)
tree69da3928cc87b9808c76f2fe2ac2b14004990a94
parent3fbac2a87e73e1dfdfa83e18e9601628eec0d676 (diff)
netlink: fix checkpatch errors space and "foo *bar"
ERROR: spaces required and "(foo*)" should be "(foo *)" Signed-off-by: Wang Yufen <wangyufen@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/netlink/af_netlink.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c
index fdf51353cf78..e42214b932c3 100644
--- a/net/netlink/af_netlink.c
+++ b/net/netlink/af_netlink.c
@@ -1460,7 +1460,7 @@ static int netlink_bind(struct socket *sock, struct sockaddr *addr,
1460 if (nlk->netlink_bind && nlk->groups[0]) { 1460 if (nlk->netlink_bind && nlk->groups[0]) {
1461 int i; 1461 int i;
1462 1462
1463 for (i=0; i<nlk->ngroups; i++) { 1463 for (i = 0; i < nlk->ngroups; i++) {
1464 if (test_bit(i, nlk->groups)) 1464 if (test_bit(i, nlk->groups))
1465 nlk->netlink_bind(i); 1465 nlk->netlink_bind(i);
1466 } 1466 }
@@ -2549,7 +2549,7 @@ __nlmsg_put(struct sk_buff *skb, u32 portid, u32 seq, int type, int len, int fla
2549 struct nlmsghdr *nlh; 2549 struct nlmsghdr *nlh;
2550 int size = nlmsg_msg_size(len); 2550 int size = nlmsg_msg_size(len);
2551 2551
2552 nlh = (struct nlmsghdr*)skb_put(skb, NLMSG_ALIGN(size)); 2552 nlh = (struct nlmsghdr *)skb_put(skb, NLMSG_ALIGN(size));
2553 nlh->nlmsg_type = type; 2553 nlh->nlmsg_type = type;
2554 nlh->nlmsg_len = size; 2554 nlh->nlmsg_len = size;
2555 nlh->nlmsg_flags = flags; 2555 nlh->nlmsg_flags = flags;