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:
Himangi Saraogi 2014-03-02 03:01:17 +05:30 committed by Greg Kroah-Hartman
parent 76b8f5388a
commit 8505e3fc47
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}