Commit ed4477b9 authored by YOSHIFUJI Hideaki's avatar YOSHIFUJI Hideaki Committed by David S. Miller

[NET] APPLETALK: Fix whitespace errors.

Signed-off-by: default avatarYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 122952fc
...@@ -895,7 +895,7 @@ struct aarp_iter_state { ...@@ -895,7 +895,7 @@ struct aarp_iter_state {
/* /*
* Get the aarp entry that is in the chain described * Get the aarp entry that is in the chain described
* by the iterator. * by the iterator.
* If pos is set then skip till that index. * If pos is set then skip till that index.
* pos = 1 is the first entry * pos = 1 is the first entry
*/ */
...@@ -905,7 +905,7 @@ static struct aarp_entry *iter_next(struct aarp_iter_state *iter, loff_t *pos) ...@@ -905,7 +905,7 @@ static struct aarp_entry *iter_next(struct aarp_iter_state *iter, loff_t *pos)
struct aarp_entry **table = iter->table; struct aarp_entry **table = iter->table;
loff_t off = 0; loff_t off = 0;
struct aarp_entry *entry; struct aarp_entry *entry;
rescan: rescan:
while(ct < AARP_HASH_SIZE) { while(ct < AARP_HASH_SIZE) {
for (entry = table[ct]; entry; entry = entry->next) { for (entry = table[ct]; entry; entry = entry->next) {
...@@ -950,9 +950,9 @@ static void *aarp_seq_next(struct seq_file *seq, void *v, loff_t *pos) ...@@ -950,9 +950,9 @@ static void *aarp_seq_next(struct seq_file *seq, void *v, loff_t *pos)
++*pos; ++*pos;
/* first line after header */ /* first line after header */
if (v == SEQ_START_TOKEN) if (v == SEQ_START_TOKEN)
entry = iter_next(iter, NULL); entry = iter_next(iter, NULL);
/* next entry in current bucket */ /* next entry in current bucket */
else if (entry->next) else if (entry->next)
entry = entry->next; entry = entry->next;
...@@ -986,7 +986,7 @@ static int aarp_seq_show(struct seq_file *seq, void *v) ...@@ -986,7 +986,7 @@ static int aarp_seq_show(struct seq_file *seq, void *v)
unsigned long now = jiffies; unsigned long now = jiffies;
if (v == SEQ_START_TOKEN) if (v == SEQ_START_TOKEN)
seq_puts(seq, seq_puts(seq,
"Address Interface Hardware Address" "Address Interface Hardware Address"
" Expires LastSend Retry Status\n"); " Expires LastSend Retry Status\n");
else { else {
...@@ -1014,7 +1014,7 @@ static int aarp_seq_show(struct seq_file *seq, void *v) ...@@ -1014,7 +1014,7 @@ static int aarp_seq_show(struct seq_file *seq, void *v)
: (iter->table == unresolved) ? "unresolved" : (iter->table == unresolved) ? "unresolved"
: (iter->table == proxies) ? "proxies" : (iter->table == proxies) ? "proxies"
: "unknown"); : "unknown");
} }
return 0; return 0;
} }
...@@ -1030,7 +1030,7 @@ static int aarp_seq_open(struct inode *inode, struct file *file) ...@@ -1030,7 +1030,7 @@ static int aarp_seq_open(struct inode *inode, struct file *file)
struct seq_file *seq; struct seq_file *seq;
int rc = -ENOMEM; int rc = -ENOMEM;
struct aarp_iter_state *s = kmalloc(sizeof(*s), GFP_KERNEL); struct aarp_iter_state *s = kmalloc(sizeof(*s), GFP_KERNEL);
if (!s) if (!s)
goto out; goto out;
......
...@@ -292,7 +292,7 @@ int __init atalk_proc_init(void) ...@@ -292,7 +292,7 @@ int __init atalk_proc_init(void)
p->proc_fops = &atalk_seq_socket_fops; p->proc_fops = &atalk_seq_socket_fops;
p = create_proc_entry("arp", S_IRUGO, atalk_proc_dir); p = create_proc_entry("arp", S_IRUGO, atalk_proc_dir);
if (!p) if (!p)
goto out_arp; goto out_arp;
p->proc_fops = &atalk_seq_arp_fops; p->proc_fops = &atalk_seq_arp_fops;
......
This diff is collapsed.
...@@ -15,14 +15,14 @@ static int ltalk_change_mtu(struct net_device *dev, int mtu) ...@@ -15,14 +15,14 @@ static int ltalk_change_mtu(struct net_device *dev, int mtu)
} }
static int ltalk_mac_addr(struct net_device *dev, void *addr) static int ltalk_mac_addr(struct net_device *dev, void *addr)
{ {
return -EINVAL; return -EINVAL;
} }
static void ltalk_setup(struct net_device *dev) static void ltalk_setup(struct net_device *dev)
{ {
/* Fill in the fields of the device structure with localtalk-generic values. */ /* Fill in the fields of the device structure with localtalk-generic values. */
dev->change_mtu = ltalk_change_mtu; dev->change_mtu = ltalk_change_mtu;
dev->hard_header = NULL; dev->hard_header = NULL;
dev->rebuild_header = NULL; dev->rebuild_header = NULL;
...@@ -34,8 +34,8 @@ static void ltalk_setup(struct net_device *dev) ...@@ -34,8 +34,8 @@ static void ltalk_setup(struct net_device *dev)
dev->hard_header_len = LTALK_HLEN; dev->hard_header_len = LTALK_HLEN;
dev->mtu = LTALK_MTU; dev->mtu = LTALK_MTU;
dev->addr_len = LTALK_ALEN; dev->addr_len = LTALK_ALEN;
dev->tx_queue_len = 10; dev->tx_queue_len = 10;
dev->broadcast[0] = 0xFF; dev->broadcast[0] = 0xFF;
dev->flags = IFF_BROADCAST|IFF_MULTICAST|IFF_NOARP; dev->flags = IFF_BROADCAST|IFF_MULTICAST|IFF_NOARP;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment