Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1736410
| From | Janani Sankara Babu <jananis37@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] staging:ccree Fix dont use assignment in if condition |
| Date | 2017-09-21 08:50 +0200 |
| Message-ID | <us3t8-5H4-25@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
This patch solves the following error shown by checkpatch script
ERROR: do not use assignment in if condition
Signed-off-by: Janani Sankara Babu <jananis37@gmail.com>
---
drivers/staging/ccree/ssi_hash.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/staging/ccree/ssi_hash.c b/drivers/staging/ccree/ssi_hash.c
index ae8f36a..08eaa56 100644
--- a/drivers/staging/ccree/ssi_hash.c
+++ b/drivers/staging/ccree/ssi_hash.c
@@ -601,8 +601,8 @@ static int ssi_hash_update(struct ahash_req_ctx *state,
/* no real updates required */
return 0;
}
-
- if (unlikely(rc = ssi_buffer_mgr_map_hash_request_update(ctx->drvdata, state, src, nbytes, block_size))) {
+ rc = ssi_buffer_mgr_map_hash_request_update(ctx->drvdata, state, src, nbytes, block_size);
+ if (unlikely(rc)) {
if (rc == 1) {
SSI_LOG_DEBUG(" data size not require HW update %x\n",
nbytes);
@@ -1403,8 +1403,8 @@ static int ssi_mac_update(struct ahash_request *req)
}
state->xcbc_count++;
-
- if (unlikely(rc = ssi_buffer_mgr_map_hash_request_update(ctx->drvdata, state, req->src, req->nbytes, block_size))) {
+ rc = ssi_buffer_mgr_map_hash_request_update(ctx->drvdata, state, req->src, req->nbytes, block_size);
+ if (unlikely(rc)) {
if (rc == 1) {
SSI_LOG_DEBUG(" data size not require HW update %x\n",
req->nbytes);
--
1.9.1
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH] staging:ccree Fix dont use assignment in if condition Janani Sankara Babu <jananis37@gmail.com> - 2017-09-21 08:50 +0200
Re: [PATCH] staging:ccree Fix dont use assignment in if condition Greg KH <gregkh@linuxfoundation.org> - 2017-09-22 11:00 +0200
Re: [PATCH] staging:ccree Fix dont use assignment in if condition Greg KH <gregkh@linuxfoundation.org> - 2017-09-22 13:00 +0200
csiph-web