diff options
Diffstat (limited to 'net/appletalk/aarp.c')
-rw-r--r-- | net/appletalk/aarp.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/net/appletalk/aarp.c b/net/appletalk/aarp.c index f3777ec5bcb9..27e845d260a9 100644 --- a/net/appletalk/aarp.c +++ b/net/appletalk/aarp.c | |||
@@ -895,7 +895,7 @@ struct aarp_iter_state { | |||
895 | 895 | ||
896 | /* | 896 | /* |
897 | * Get the aarp entry that is in the chain described | 897 | * Get the aarp entry that is in the chain described |
898 | * by the iterator. | 898 | * by the iterator. |
899 | * If pos is set then skip till that index. | 899 | * If pos is set then skip till that index. |
900 | * pos = 1 is the first entry | 900 | * pos = 1 is the first entry |
901 | */ | 901 | */ |
@@ -905,7 +905,7 @@ static struct aarp_entry *iter_next(struct aarp_iter_state *iter, loff_t *pos) | |||
905 | struct aarp_entry **table = iter->table; | 905 | struct aarp_entry **table = iter->table; |
906 | loff_t off = 0; | 906 | loff_t off = 0; |
907 | struct aarp_entry *entry; | 907 | struct aarp_entry *entry; |
908 | 908 | ||
909 | rescan: | 909 | rescan: |
910 | while(ct < AARP_HASH_SIZE) { | 910 | while(ct < AARP_HASH_SIZE) { |
911 | for (entry = table[ct]; entry; entry = entry->next) { | 911 | 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 | ++*pos; | 950 | ++*pos; |
951 | 951 | ||
952 | /* first line after header */ | 952 | /* first line after header */ |
953 | if (v == SEQ_START_TOKEN) | 953 | if (v == SEQ_START_TOKEN) |
954 | entry = iter_next(iter, NULL); | 954 | entry = iter_next(iter, NULL); |
955 | 955 | ||
956 | /* next entry in current bucket */ | 956 | /* next entry in current bucket */ |
957 | else if (entry->next) | 957 | else if (entry->next) |
958 | entry = entry->next; | 958 | entry = entry->next; |
@@ -986,7 +986,7 @@ static int aarp_seq_show(struct seq_file *seq, void *v) | |||
986 | unsigned long now = jiffies; | 986 | unsigned long now = jiffies; |
987 | 987 | ||
988 | if (v == SEQ_START_TOKEN) | 988 | if (v == SEQ_START_TOKEN) |
989 | seq_puts(seq, | 989 | seq_puts(seq, |
990 | "Address Interface Hardware Address" | 990 | "Address Interface Hardware Address" |
991 | " Expires LastSend Retry Status\n"); | 991 | " Expires LastSend Retry Status\n"); |
992 | else { | 992 | else { |
@@ -1014,7 +1014,7 @@ static int aarp_seq_show(struct seq_file *seq, void *v) | |||
1014 | : (iter->table == unresolved) ? "unresolved" | 1014 | : (iter->table == unresolved) ? "unresolved" |
1015 | : (iter->table == proxies) ? "proxies" | 1015 | : (iter->table == proxies) ? "proxies" |
1016 | : "unknown"); | 1016 | : "unknown"); |
1017 | } | 1017 | } |
1018 | return 0; | 1018 | return 0; |
1019 | } | 1019 | } |
1020 | 1020 | ||
@@ -1030,7 +1030,7 @@ static int aarp_seq_open(struct inode *inode, struct file *file) | |||
1030 | struct seq_file *seq; | 1030 | struct seq_file *seq; |
1031 | int rc = -ENOMEM; | 1031 | int rc = -ENOMEM; |
1032 | struct aarp_iter_state *s = kmalloc(sizeof(*s), GFP_KERNEL); | 1032 | struct aarp_iter_state *s = kmalloc(sizeof(*s), GFP_KERNEL); |
1033 | 1033 | ||
1034 | if (!s) | 1034 | if (!s) |
1035 | goto out; | 1035 | goto out; |
1036 | 1036 | ||