mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 11:01:06 -04:00
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 <himangi774@gmail.com> Reviewed-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
76b8f5388a
commit
8505e3fc47
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user