summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2010-08-05 23:26:28 +0200
committerMiloslav Trmač <mitr@redhat.com>2010-08-24 20:58:30 +0200
commita39580dfe8f7026a964e3665fc770e36a73ed576 (patch)
tree5bb68113fcfcd90d248c869be0ec68f030f504f6
parent5aa447b5b1f49663a2110967089f6b24bfd87aa9 (diff)
downloadcryptodev-linux-a39580dfe8f7026a964e3665fc770e36a73ed576.tar.gz
cryptodev-linux-a39580dfe8f7026a964e3665fc770e36a73ed576.tar.xz
cryptodev-linux-a39580dfe8f7026a964e3665fc770e36a73ed576.zip
Remove an unused variable
-rw-r--r--examples/ncr_lib.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/examples/ncr_lib.c b/examples/ncr_lib.c
index 98c35cb..111f89b 100644
--- a/examples/ncr_lib.c
+++ b/examples/ncr_lib.c
@@ -52,7 +52,6 @@ static int
test_ncr_key(void)
{
ncr_key_t key;
- struct ncr_key_data_st keydata;
uint8_t data[KEY_DATA_SIZE];
uint8_t data_bak[KEY_DATA_SIZE];
ssize_t output_size;
@@ -72,7 +71,6 @@ test_ncr_key(void)
DIAGNOSTIC_CALL(ncr_key_import, key, data, sizeof(data), "ab", 2, NCR_ALG_AES_CBC, NCR_KEY_TYPE_SECRET, NCR_KEY_FLAG_EXPORTABLE);
/* now try to read it */
fprintf(stdout, "\tKey export...\n");
- memset(&keydata, 0, sizeof(keydata));
DIAGNOSTIC_CALL(ncr_key_export, key, data, sizeof(data));
if ((output_size != sizeof(data)) || memcmp(data, data_bak, sizeof(data))) {
DIAGNOSTIC_ERROR("data returned but differ!\n");