diff --git a/net/sunrpc/auth.c b/net/sunrpc/auth.c index a045a1253d49652b17076dc87fbbfd447bf63a6c..cb216b2df666dc260b79a0d0f2259ac123d5fabf 100644 --- a/net/sunrpc/auth.c +++ b/net/sunrpc/auth.c @@ -455,7 +455,7 @@ put_rpccred(struct rpc_cred *cred) } if (test_bit(RPCAUTH_CRED_UPTODATE, &cred->cr_flags) == 0) rpcauth_unhash_cred(cred); - else if (test_bit(RPCAUTH_CRED_HASHED, &cred->cr_flags) != 0) { + if (test_bit(RPCAUTH_CRED_HASHED, &cred->cr_flags) != 0) { cred->cr_expire = jiffies; list_add_tail(&cred->cr_lru, &cred_unused); number_cred_unused++;