]> code.ossystems Code Review - meta-freescale.git/blob
d7af9cbd62af6ae3c85c488a670bc3fa49b86566
[meta-freescale.git] /
1 From 9faaca759390bba5aeeb049d31f74806e78137e1 Mon Sep 17 00:00:00 2001
2 From: Cristian Stoica <cristian.stoica@nxp.com>
3 Date: Mon, 8 Feb 2016 16:00:22 +0200
4 Subject: [PATCH 31/48] cryptodev: remove not used local variables
5
6 Signed-off-by: Cristian Stoica <cristian.stoica@nxp.com>
7 ---
8  crypto/engine/eng_cryptodev.c | 6 +-----
9  1 file changed, 1 insertion(+), 5 deletions(-)
10
11 diff --git a/crypto/engine/eng_cryptodev.c b/crypto/engine/eng_cryptodev.c
12 index 163a37d..b13bf8c 100644
13 --- a/crypto/engine/eng_cryptodev.c
14 +++ b/crypto/engine/eng_cryptodev.c
15 @@ -1635,7 +1635,6 @@ static int cryptodev_digest_final(EVP_MD_CTX *ctx, unsigned char *md)
16  static int cryptodev_digest_cleanup(EVP_MD_CTX *ctx)
17  {
18      struct dev_crypto_state *state = ctx->md_data;
19 -    struct session_op *sess = &state->d_sess;
20  
21      if (state == NULL) {
22          return 0;
23 @@ -3952,7 +3951,6 @@ static int cryptodev_dh_keygen(DH *dh)
24      int ret = 1, q_len = 0;
25      unsigned char *q = NULL, *g = NULL, *s = NULL, *w = NULL;
26      BIGNUM *pub_key = NULL, *priv_key = NULL;
27 -    int generate_new_key = 1;
28  
29      if (dh->priv_key)
30          priv_key = dh->priv_key;
31 @@ -4074,11 +4072,9 @@ cryptodev_dh_compute_key_async(unsigned char *key, const BIGNUM *pub_key,
32  {
33      struct crypt_kop *kop = malloc(sizeof(struct crypt_kop));
34      int ret = 1;
35 -    int fd, p_len;
36 +    int p_len;
37      unsigned char *padded_pub_key = NULL, *p = NULL;
38  
39 -    fd = *(int *)cookie->eng_handle;
40 -
41      memset(kop, 0, sizeof(struct crypt_kop));
42      kop->crk_op = CRK_DH_COMPUTE_KEY;
43      /* inputs: dh->priv_key pub_key dh->p key */
44 -- 
45 2.7.3
46