diff options
Diffstat (limited to 'net/sunrpc/auth.c')
| -rw-r--r-- | net/sunrpc/auth.c | 5 | 
1 files changed, 2 insertions, 3 deletions
diff --git a/net/sunrpc/auth.c b/net/sunrpc/auth.c index 392adc41e2e..f5294047df7 100644 --- a/net/sunrpc/auth.c +++ b/net/sunrpc/auth.c @@ -407,7 +407,6 @@ rpcauth_lookup_credcache(struct rpc_auth *auth, struct auth_cred * acred,  {  	LIST_HEAD(free);  	struct rpc_cred_cache *cache = auth->au_credcache; -	struct hlist_node *pos;  	struct rpc_cred	*cred = NULL,  			*entry, *new;  	unsigned int nr; @@ -415,7 +414,7 @@ rpcauth_lookup_credcache(struct rpc_auth *auth, struct auth_cred * acred,  	nr = hash_long(from_kuid(&init_user_ns, acred->uid), cache->hashbits);  	rcu_read_lock(); -	hlist_for_each_entry_rcu(entry, pos, &cache->hashtable[nr], cr_hash) { +	hlist_for_each_entry_rcu(entry, &cache->hashtable[nr], cr_hash) {  		if (!entry->cr_ops->crmatch(acred, entry, flags))  			continue;  		spin_lock(&cache->lock); @@ -439,7 +438,7 @@ rpcauth_lookup_credcache(struct rpc_auth *auth, struct auth_cred * acred,  	}  	spin_lock(&cache->lock); -	hlist_for_each_entry(entry, pos, &cache->hashtable[nr], cr_hash) { +	hlist_for_each_entry(entry, &cache->hashtable[nr], cr_hash) {  		if (!entry->cr_ops->crmatch(acred, entry, flags))  			continue;  		cred = get_rpccred(entry);  |