]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: ccree: remove assignement in conditional
authorTyler Olivieri <sleepingzucchini@gmail.com>
Sun, 9 Jul 2017 21:10:45 +0000 (17:10 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Jul 2017 06:40:57 +0000 (08:40 +0200)
Patch to fix following checkpatch error:
ERROR: do not use assignment in if condition

Signed-off-by: Tyler Olivieri <sleepingzucchini@gmail.com>
Acked-by: Gilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ccree/ssi_hash.c

index 7e9f273bd629659dddd440cf081899e217364482..c66314fda012940ab14db470c27b59d8ac5b6d6e 100644 (file)
@@ -602,7 +602,8 @@ static int ssi_hash_update(struct ahash_req_ctx *state,
                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);
@@ -1404,7 +1405,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);