summaryrefslogtreecommitdiffstats
path: root/net/appletalk/ddp.c
diff options
context:
space:
mode:
authorwangweidong <wangweidong1@huawei.com>2014-02-14 08:43:43 +0100
committerDavid S. Miller <davem@davemloft.net>2014-02-14 22:18:32 +0100
commitfd1dc261dfd9d04e2b934693f2f3c4dc5563b314 (patch)
treee65454083984d5cc447e67559f8bbdbfac774286 /net/appletalk/ddp.c
parenttcp: add pacing_rate information into tcp_info (diff)
downloadlinux-fd1dc261dfd9d04e2b934693f2f3c4dc5563b314.tar.xz
linux-fd1dc261dfd9d04e2b934693f2f3c4dc5563b314.zip
appletalk: fix checkpatch errors with space required or prohibited
fix checkpatch errors while the space is required or prohibited Signed-off-by: Wang Weidong <wangweidong1@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/appletalk/ddp.c')
-rw-r--r--net/appletalk/ddp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/appletalk/ddp.c b/net/appletalk/ddp.c
index 02806c6b2ff3..a878df925a59 100644
--- a/net/appletalk/ddp.c
+++ b/net/appletalk/ddp.c
@@ -936,11 +936,11 @@ static unsigned long atalk_sum_skb(const struct sk_buff *skb, int offset,
int i, copy;
/* checksum stuff in header space */
- if ( (copy = start - offset) > 0) {
+ if ((copy = start - offset) > 0) {
if (copy > len)
copy = len;
sum = atalk_sum_partial(skb->data + offset, copy, sum);
- if ( (len -= copy) == 0)
+ if ((len -= copy) == 0)
return sum;
offset += copy;
@@ -1151,7 +1151,7 @@ static int atalk_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len)
goto out;
at->src_net = addr->sat_addr.s_net = ap->s_net;
- at->src_node = addr->sat_addr.s_node= ap->s_node;
+ at->src_node = addr->sat_addr.s_node = ap->s_node;
} else {
err = -EADDRNOTAVAIL;
if (!atalk_find_interface(addr->sat_addr.s_net,