From 8505e3fc47b37591c3189b6e49e3f3a01b36d753 Mon Sep 17 00:00:00 2001 From: Himangi Saraogi Date: Sun, 2 Mar 2014 03:01:17 +0530 Subject: [PATCH] staging: lustre: remove assignment in if condition This patch removes the assignment in if conditions to do away with the checkpatch warning :'do not use assignment in if condition'. Signed-off-by: Himangi Saraogi Reviewed-by: Paul E. McKenney Signed-off-by: Greg Kroah-Hartman --- drivers/staging/lustre/lustre/ptlrpc/gss/gss_krb5_mech.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/lustre/lustre/ptlrpc/gss/gss_krb5_mech.c b/drivers/staging/lustre/lustre/ptlrpc/gss/gss_krb5_mech.c index 6eda1799be8f..d03f6c114171 100644 --- a/drivers/staging/lustre/lustre/ptlrpc/gss/gss_krb5_mech.c +++ b/drivers/staging/lustre/lustre/ptlrpc/gss/gss_krb5_mech.c @@ -678,7 +678,8 @@ __s32 krb5_make_checksum(__u32 enctype, __u32 code = GSS_S_FAILURE; int rc; - if (!(tfm = ll_crypto_alloc_hash(ke->ke_hash_name, 0, 0))) { + tfm = ll_crypto_alloc_hash(ke->ke_hash_name, 0, 0); + if (!tfm) { CERROR("failed to alloc TFM: %s\n", ke->ke_hash_name); return GSS_S_FAILURE; } -- 2.30.2