Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

wangweidong and committed by
David S. Miller
fd1dc261 977cb0ec

+5 -5
+2 -2
net/appletalk/aarp.c
··· 926 926 struct aarp_entry *entry; 927 927 928 928 rescan: 929 - while(ct < AARP_HASH_SIZE) { 929 + while (ct < AARP_HASH_SIZE) { 930 930 for (entry = table[ct]; entry; entry = entry->next) { 931 931 if (!pos || ++off == *pos) { 932 932 iter->table = table; ··· 995 995 { 996 996 static char buf[32]; 997 997 998 - sprintf(buf, "%ld.%02ld", ticks / HZ, ((ticks % HZ) * 100 ) / HZ); 998 + sprintf(buf, "%ld.%02ld", ticks / HZ, ((ticks % HZ) * 100) / HZ); 999 999 1000 1000 return buf; 1001 1001 }
+3 -3
net/appletalk/ddp.c
··· 936 936 int i, copy; 937 937 938 938 /* checksum stuff in header space */ 939 - if ( (copy = start - offset) > 0) { 939 + if ((copy = start - offset) > 0) { 940 940 if (copy > len) 941 941 copy = len; 942 942 sum = atalk_sum_partial(skb->data + offset, copy, sum); 943 - if ( (len -= copy) == 0) 943 + if ((len -= copy) == 0) 944 944 return sum; 945 945 946 946 offset += copy; ··· 1151 1151 goto out; 1152 1152 1153 1153 at->src_net = addr->sat_addr.s_net = ap->s_net; 1154 - at->src_node = addr->sat_addr.s_node= ap->s_node; 1154 + at->src_node = addr->sat_addr.s_node = ap->s_node; 1155 1155 } else { 1156 1156 err = -EADDRNOTAVAIL; 1157 1157 if (!atalk_find_interface(addr->sat_addr.s_net,