OSDN Git Service

crypto: ccp - remove redundant assignment to variable ret
authorColin Ian King <colin.king@canonical.com>
Thu, 18 Jun 2020 10:12:29 +0000 (11:12 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 26 Jun 2020 04:46:43 +0000 (14:46 +1000)
The variable ret is being assigned with a value that is never read
and it is being updated later with a new value.  The assignment is
redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccp/ccp-ops.c

index 4221936..d270aa7 100644 (file)
@@ -1308,7 +1308,6 @@ ccp_run_des3_cmd(struct ccp_cmd_queue *cmd_q, struct ccp_cmd *cmd)
                        return -EINVAL;
        }
 
-       ret = -EIO;
        /* Zero out all the fields of the command desc */
        memset(&op, 0, sizeof(op));