diff options
author | Iaroslav Gridin <voker57@gmail.com> | 2016-10-29 14:06:30 +0300 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2017-01-10 08:21:45 +0100 |
commit | 807d21066f8f0e3aba85221fbff824f96b9341be (patch) | |
tree | 005f65834f3632c0b08eaa3046c1404000d865a5 | |
parent | 60cd1196a20f97a62bce8c7e54b618dd6f9629e0 (diff) |
Remove unused ret variable
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1784)
-rw-r--r-- | crypto/engine/eng_cryptodev.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/crypto/engine/eng_cryptodev.c b/crypto/engine/eng_cryptodev.c index d71b03ee27..ad872fda06 100644 --- a/crypto/engine/eng_cryptodev.c +++ b/crypto/engine/eng_cryptodev.c @@ -1131,8 +1131,6 @@ static int cryptodev_digest_final(EVP_MD_CTX *ctx, unsigned char *md) struct dev_crypto_state *state = EVP_MD_CTX_md_data(ctx); struct session_op *sess = &state->d_sess; - int ret = 1; - if (!md || state->d_fd < 0) { printf("cryptodev_digest_final: illegal input\n"); return (0); @@ -1157,7 +1155,7 @@ static int cryptodev_digest_final(EVP_MD_CTX *ctx, unsigned char *md) memcpy(md, state->digest_res, EVP_MD_CTX_size(ctx)); - return (ret); + return 1; } static int cryptodev_digest_cleanup(EVP_MD_CTX *ctx) |