diff options
Diffstat (limited to 'net/sunrpc/svcauth.c')
-rw-r--r-- | net/sunrpc/svcauth.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/sunrpc/svcauth.c b/net/sunrpc/svcauth.c index 7963569fc04f..2af7b0cba43a 100644 --- a/net/sunrpc/svcauth.c +++ b/net/sunrpc/svcauth.c | |||
@@ -138,13 +138,12 @@ auth_domain_lookup(char *name, struct auth_domain *new) | |||
138 | { | 138 | { |
139 | struct auth_domain *hp; | 139 | struct auth_domain *hp; |
140 | struct hlist_head *head; | 140 | struct hlist_head *head; |
141 | struct hlist_node *np; | ||
142 | 141 | ||
143 | head = &auth_domain_table[hash_str(name, DN_HASHBITS)]; | 142 | head = &auth_domain_table[hash_str(name, DN_HASHBITS)]; |
144 | 143 | ||
145 | spin_lock(&auth_domain_lock); | 144 | spin_lock(&auth_domain_lock); |
146 | 145 | ||
147 | hlist_for_each_entry(hp, np, head, hash) { | 146 | hlist_for_each_entry(hp, head, hash) { |
148 | if (strcmp(hp->name, name)==0) { | 147 | if (strcmp(hp->name, name)==0) { |
149 | kref_get(&hp->ref); | 148 | kref_get(&hp->ref); |
150 | spin_unlock(&auth_domain_lock); | 149 | spin_unlock(&auth_domain_lock); |