Commit 8505e3fc authored by Himangi Saraogi's avatar Himangi Saraogi Committed by Greg Kroah-Hartman

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: default avatarHimangi Saraogi <himangi774@gmail.com>
Reviewed-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 76b8f538
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment