summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2020-06-18 13:12:29 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2020-06-26 07:46:43 +0300
commit7649d0093086982f3b99810a164cd571519092f1 (patch)
tree015a2312afbb271e1308cf42bbc2e7ee5bceb864
parentd037cb4ae20407df89491f9c2d521ac0723aa15d (diff)
downloadlinux-7649d0093086982f3b99810a164cd571519092f1.tar.xz
crypto: ccp - remove redundant assignment to variable ret
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>
-rw-r--r--drivers/crypto/ccp/ccp-ops.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/crypto/ccp/ccp-ops.c b/drivers/crypto/ccp/ccp-ops.c
index 422193690fd4..d270aa792888 100644
--- a/drivers/crypto/ccp/ccp-ops.c
+++ b/drivers/crypto/ccp/ccp-ops.c
@@ -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));