netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 1/4] netlink: fix checkpatch errors space and "foo *bar"
@ 2014-02-17  8:53 Wangyufen
  2014-02-17  8:53 ` [PATCH net-next 2/4] ipv6: fix checkpatch errors with brace " Wangyufen
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Wangyufen @ 2014-02-17  8:53 UTC (permalink / raw)
  To: davem; +Cc: netdev

From: Wang Yufen <wangyufen@huawei.com>

ERROR: spaces required and "(foo*)" should be "(foo *)"

Signed-off-by: Wang Yufen <wangyufen@huawei.com>
---
 net/netlink/af_netlink.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c
index fdf5135..e42214b 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,
 	if (nlk->netlink_bind && nlk->groups[0]) {
 		int i;
 
-		for (i=0; i<nlk->ngroups; i++) {
+		for (i = 0; i < nlk->ngroups; i++) {
 			if (test_bit(i, nlk->groups))
 				nlk->netlink_bind(i);
 		}
@@ -2549,7 +2549,7 @@ __nlmsg_put(struct sk_buff *skb, u32 portid, u32 seq, int type, int len, int fla
 	struct nlmsghdr *nlh;
 	int size = nlmsg_msg_size(len);
 
-	nlh = (struct nlmsghdr*)skb_put(skb, NLMSG_ALIGN(size));
+	nlh = (struct nlmsghdr *)skb_put(skb, NLMSG_ALIGN(size));
 	nlh->nlmsg_type = type;
 	nlh->nlmsg_len = size;
 	nlh->nlmsg_flags = flags;
-- 
1.7.12

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-02-17 21:58 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-17  8:53 [PATCH net-next 1/4] netlink: fix checkpatch errors space and "foo *bar" Wangyufen
2014-02-17  8:53 ` [PATCH net-next 2/4] ipv6: fix checkpatch errors with brace " Wangyufen
2014-02-17 21:58   ` David Miller
2014-02-17  8:53 ` [PATCH 3/4] ipv6: fix checkpatch errors with space required or prohibited Wangyufen
2014-02-17 21:58   ` David Miller
2014-02-17  8:53 ` [PATCH 4/4] ipv6:fix checkpatch errors with assignment in if condition Wangyufen
2014-02-17 21:58   ` David Miller
2014-02-17 21:57 ` [PATCH net-next 1/4] netlink: fix checkpatch errors space and "foo *bar" David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).