mirror of https://gitee.com/openkylin/linux.git
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:
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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue