summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2011-08-27 20:04:09 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2011-08-27 20:04:09 +0200
commite5fdc955e8bcc1b3925c2e6569b28a53b6eea435 (patch)
tree2d581d8f63c781726bc180f1ebaed6bcad993394
parent407c53056f717a3ef385d6e5fed6cb9cb7efacf4 (diff)
downloadgnutls-e5fdc955e8bcc1b3925c2e6569b28a53b6eea435.tar.gz
removed unused variables.
-rw-r--r--lib/accelerated/intel/aes-gcm-x86.c4
-rw-r--r--lib/accelerated/intel/aes-x86.c4
2 files changed, 0 insertions, 8 deletions
diff --git a/lib/accelerated/intel/aes-gcm-x86.c b/lib/accelerated/intel/aes-gcm-x86.c
index 260977b58f..cd18dc9b64 100644
--- a/lib/accelerated/intel/aes-gcm-x86.c
+++ b/lib/accelerated/intel/aes-gcm-x86.c
@@ -77,8 +77,6 @@ aes_gcm_deinit (void *_ctx)
static int
aes_gcm_cipher_init (gnutls_cipher_algorithm_t algorithm, void **_ctx)
{
- struct aes_gcm_ctx *ctx;
-
/* we use key size to distinguish */
if (algorithm != GNUTLS_CIPHER_AES_128_GCM &&
algorithm != GNUTLS_CIPHER_AES_256_GCM)
@@ -91,8 +89,6 @@ aes_gcm_cipher_init (gnutls_cipher_algorithm_t algorithm, void **_ctx)
return GNUTLS_E_MEMORY_ERROR;
}
- ctx = *_ctx;
-
return 0;
}
diff --git a/lib/accelerated/intel/aes-x86.c b/lib/accelerated/intel/aes-x86.c
index 68a5e1a7a3..7a5ed64551 100644
--- a/lib/accelerated/intel/aes-x86.c
+++ b/lib/accelerated/intel/aes-x86.c
@@ -46,8 +46,6 @@ struct aes_ctx
static int
aes_cipher_init (gnutls_cipher_algorithm_t algorithm, void **_ctx)
{
- struct aes_ctx *ctx;
-
/* we use key size to distinguish */
if (algorithm != GNUTLS_CIPHER_AES_128_CBC
&& algorithm != GNUTLS_CIPHER_AES_192_CBC
@@ -61,8 +59,6 @@ aes_cipher_init (gnutls_cipher_algorithm_t algorithm, void **_ctx)
return GNUTLS_E_MEMORY_ERROR;
}
- ctx = *_ctx;
-
return 0;
}