summaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@nxp.com>2018-04-11 18:37:17 -0300
committerHerbert Xu <herbert@gondor.apana.org.au>2018-04-21 00:58:37 +0800
commit550a305c78b3e5502d3d010da584972edd2d492d (patch)
tree70931473efe460d4cb4444abcc0ee812a148218d /crypto
parentc1de538a536942fd27d58655533224b0499efaa8 (diff)
downloadlinux-crypto-550a305c78b3e5502d3d010da584972edd2d492d.tar.gz
linux-crypto-550a305c78b3e5502d3d010da584972edd2d492d.zip
crypto: rsa - Remove unneeded error assignment
There is no need to assign an error value to 'ret' prior to calling mpi_read_raw_from_sgl() because in the case of error the 'ret' variable will be assigned to the error code inside the if block. In the case of non failure, 'ret' will be overwritten immediately after, so remove the unneeded assignment. Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/rsa.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/crypto/rsa.c b/crypto/rsa.c
index b067f3a9..4167980c 100644
--- a/crypto/rsa.c
+++ b/crypto/rsa.c
@@ -215,7 +215,6 @@ static int rsa_verify(struct akcipher_request *req)
goto err_free_m;
}
- ret = -ENOMEM;
s = mpi_read_raw_from_sgl(req->src, req->src_len);
if (!s) {
ret = -ENOMEM;