summaryrefslogtreecommitdiffstats
path: root/net/sunrpc/auth.c
diff options
context:
space:
mode:
authorKinglong Mee <kinglongmee@gmail.com>2017-02-07 21:48:49 +0800
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2017-02-08 17:02:46 -0500
commitaf4926e5619f8a33463f7202f27ba091893ed2ad (patch)
treed0725301e6621400fdf900535da411708d18fa76 /net/sunrpc/auth.c
parent5786461bd8ea81433d81297215ee814a9a33ce7a (diff)
downloadlinux-stable-af4926e5619f8a33463f7202f27ba091893ed2ad.tar.gz
linux-stable-af4926e5619f8a33463f7202f27ba091893ed2ad.tar.bz2
linux-stable-af4926e5619f8a33463f7202f27ba091893ed2ad.zip
sunrpc: remove dead codes of cr_magic in rpc_cred
Don't found any place using the cr_magic. Signed-off-by: Kinglong Mee <kinglongmee@gmail.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'net/sunrpc/auth.c')
-rw-r--r--net/sunrpc/auth.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/net/sunrpc/auth.c b/net/sunrpc/auth.c
index 8b344d0eb6ed..a1ee933e3029 100644
--- a/net/sunrpc/auth.c
+++ b/net/sunrpc/auth.c
@@ -648,9 +648,6 @@ rpcauth_init_cred(struct rpc_cred *cred, const struct auth_cred *acred,
cred->cr_auth = auth;
cred->cr_ops = ops;
cred->cr_expire = jiffies;
-#if IS_ENABLED(CONFIG_SUNRPC_DEBUG)
- cred->cr_magic = RPCAUTH_CRED_MAGIC;
-#endif
cred->cr_uid = acred->uid;
}
EXPORT_SYMBOL_GPL(rpcauth_init_cred);