diff options
| author | Himangi Saraogi <himangi774@gmail.com> | 2014-03-02 01:31:17 +0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-03-07 05:35:27 +0400 |
| commit | 8505e3fc47b37591c3189b6e49e3f3a01b36d753 (patch) | |
| tree | a3773f439d76e028ab8a51c58097bc30ebb5fde8 | |
| parent | 76b8f5388a2f0da3bbb7deb72603a74c7a9875ba (diff) | |
| download | linux-8505e3fc47b37591c3189b6e49e3f3a01b36d753.tar.xz | |
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>
| -rw-r--r-- | drivers/staging/lustre/lustre/ptlrpc/gss/gss_krb5_mech.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |
