]> code.ossystems Code Review - meta-freescale.git/blob
fc23e0c1b263e7be626e95e7cb121159ffe42d78
[meta-freescale.git] /
1 From 8cd09ffdfd7d9c25605401f1c0947b1b4acc6e57 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 30713e5..2734500 100644
13 --- a/crypto/engine/eng_cryptodev.c
14 +++ b/crypto/engine/eng_cryptodev.c
15 @@ -1634,7 +1634,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 @@ -3939,7 +3938,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 @@ -4061,11 +4059,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.0
46