summaryrefslogtreecommitdiffstats
path: root/crypto/rsa.c
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@nxp.com>2018-04-11 23:37:17 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2018-04-20 18:58:37 +0200
commitb2b4f84d9cb2b723fdf5e05401c43d82836fec2f (patch)
tree208d299b2e5e33f3418d80cc41c0137aac207512 /crypto/rsa.c
parentcrypto: testmgr - Allow different compression results (diff)
downloadlinux-b2b4f84d9cb2b723fdf5e05401c43d82836fec2f.tar.xz
linux-b2b4f84d9cb2b723fdf5e05401c43d82836fec2f.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/rsa.c')
-rw-r--r--crypto/rsa.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/crypto/rsa.c b/crypto/rsa.c
index b067f3a93880..4167980c243d 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;