diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-11 14:38:13 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-11 14:38:13 -0500 |
commit | cb18eccff48ef3986d1072964590bce6fec705fb (patch) | |
tree | 777fb1d15e0281341e1e02c9803d989538d346f2 /net/appletalk/aarp.c | |
parent | c827ba4cb49a30ce581201fd0ba2be77cde412c7 (diff) | |
parent | 5ef213f6842277ee1df5659f59fac0ffc9beb411 (diff) |
Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
* master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6: (45 commits)
[IPV4]: Restore multipath routing after rt_next changes.
[XFRM] IPV6: Fix outbound RO transformation which is broken by IPsec tunnel patch.
[NET]: Reorder fields of struct dst_entry
[DECNET]: Convert decnet route to use the new dst_entry 'next' pointer
[IPV6]: Convert ipv6 route to use the new dst_entry 'next' pointer
[IPV4]: Convert ipv4 route to use the new dst_entry 'next' pointer
[NET]: Introduce union in struct dst_entry to hold 'next' pointer
[DECNET]: fix misannotation of linkinfo_dn
[DECNET]: FRA_{DST,SRC} are le16 for decnet
[UDP]: UDP can use sk_hash to speedup lookups
[NET]: Fix whitespace errors.
[NET] XFRM: Fix whitespace errors.
[NET] X25: Fix whitespace errors.
[NET] WANROUTER: Fix whitespace errors.
[NET] UNIX: Fix whitespace errors.
[NET] TIPC: Fix whitespace errors.
[NET] SUNRPC: Fix whitespace errors.
[NET] SCTP: Fix whitespace errors.
[NET] SCHED: Fix whitespace errors.
[NET] RXRPC: Fix whitespace errors.
...
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 | ||