summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/cryptodev/sdk_patches/0064-remove-not-used-local-variables.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-kernel/cryptodev/sdk_patches/0064-remove-not-used-local-variables.patch')
-rw-r--r--recipes-kernel/cryptodev/sdk_patches/0064-remove-not-used-local-variables.patch129
1 files changed, 0 insertions, 129 deletions
diff --git a/recipes-kernel/cryptodev/sdk_patches/0064-remove-not-used-local-variables.patch b/recipes-kernel/cryptodev/sdk_patches/0064-remove-not-used-local-variables.patch
deleted file mode 100644
index 24eac13e..00000000
--- a/recipes-kernel/cryptodev/sdk_patches/0064-remove-not-used-local-variables.patch
+++ /dev/null
@@ -1,129 +0,0 @@
1From c31ba5b149428cbbcd48fab649331a2d38003209 Mon Sep 17 00:00:00 2001
2From: Cristian Stoica <cristian.stoica@nxp.com>
3Date: Wed, 26 Oct 2016 10:47:07 +0300
4Subject: [PATCH 064/104] remove not used local variables
5
6Signed-off-by: Cristian Stoica <cristian.stoica@nxp.com>
7---
8 tests/async_hmac.c | 2 --
9 tests/async_speed.c | 5 -----
10 tests/cipher_comp.c | 2 +-
11 tests/hash_comp.c | 5 ++---
12 tests/hmac.c | 2 --
13 tests/sha_speed.c | 1 -
14 6 files changed, 3 insertions(+), 14 deletions(-)
15
16diff --git a/tests/async_hmac.c b/tests/async_hmac.c
17index 94a02c0..85d19c6 100644
18--- a/tests/async_hmac.c
19+++ b/tests/async_hmac.c
20@@ -185,8 +185,6 @@ test_extras(int cfd)
21 struct session_op sess;
22 struct crypt_op cryp;
23 uint8_t mac[AALG_MAX_RESULT_LEN];
24- uint8_t oldmac[AALG_MAX_RESULT_LEN];
25- uint8_t md5_hmac_out[] = "\x75\x0c\x78\x3e\x6a\xb0\xb5\x03\xea\xa8\x6e\x31\x0a\x5d\xb7\x38";
26 uint8_t sha1_out[] = "\x8f\x82\x03\x94\xf9\x53\x35\x18\x20\x45\xda\x24\xf3\x4d\xe5\x2b\xf8\xbc\x34\x32";
27 int i;
28
29diff --git a/tests/async_speed.c b/tests/async_speed.c
30index dabbbc1..f2b9772 100644
31--- a/tests/async_speed.c
32+++ b/tests/async_speed.c
33@@ -284,8 +284,6 @@ int run_null(int fdc, struct test_params tp)
34 {
35 struct session_op sess;
36 char keybuf[32];
37- int alignmask;
38- int i;
39
40 fprintf(stderr, "Testing NULL cipher: \n");
41 memset(&sess, 0, sizeof(sess));
42@@ -305,8 +303,6 @@ int run_aes_128_cbc(int fdc, struct test_params tp)
43 {
44 struct session_op sess;
45 char keybuf[32];
46- int alignmask;
47- int i;
48
49 memset(&sess, 0, sizeof(sess));
50 sess.cipher = CRYPTO_AES_CBC;
51@@ -390,7 +386,6 @@ int main(int argc, char **argv)
52 {
53 int i;
54 int c;
55- int index;
56 bool alg_flag;
57 char *alg_name;
58 struct test_params tp;
59diff --git a/tests/cipher_comp.c b/tests/cipher_comp.c
60index 03f67bf..dbf9977 100644
61--- a/tests/cipher_comp.c
62+++ b/tests/cipher_comp.c
63@@ -33,7 +33,7 @@ test_crypto(int cfd, struct session_op *sess, int datalen)
64
65 struct crypt_op cryp;
66
67- int ret = 0, fail = 0;
68+ int ret = 0;
69
70 data = malloc(datalen);
71 encrypted = malloc(datalen);
72diff --git a/tests/hash_comp.c b/tests/hash_comp.c
73index e6a4346..73f85ed 100644
74--- a/tests/hash_comp.c
75+++ b/tests/hash_comp.c
76@@ -36,7 +36,7 @@ test_crypto(int cfd, struct session_op *sess, int datalen)
77
78 struct crypt_op cryp;
79
80- int ret = 0, fail = 0;
81+ int ret = 0;
82
83 data = malloc(datalen);
84 memset(data, datalen & 0xff, datalen);
85@@ -66,7 +66,7 @@ test_crypto(int cfd, struct session_op *sess, int datalen)
86
87 if (memcmp(mac, mac_comp, AALG_MAX_RESULT_LEN)) {
88 printf("fail for datalen %d, MACs do not match!\n", datalen);
89- fail = 1;
90+ ret = 1;
91 printf("wrong mac: ");
92 printhex(mac, 20);
93 printf("right mac: ");
94@@ -88,7 +88,6 @@ main(int argc, char **argv)
95 struct session_op sess;
96 int datalen = BLOCK_SIZE;
97 int datalen_end = MAX_DATALEN;
98- int i;
99
100 if (argc > 1) {
101 datalen = min(max(atoi(argv[1]), BLOCK_SIZE), MAX_DATALEN);
102diff --git a/tests/hmac.c b/tests/hmac.c
103index 80a2c42..3b248f3 100644
104--- a/tests/hmac.c
105+++ b/tests/hmac.c
106@@ -212,8 +212,6 @@ test_extras(int cfd)
107 #endif
108 struct crypt_op cryp;
109 uint8_t mac[AALG_MAX_RESULT_LEN];
110- uint8_t oldmac[AALG_MAX_RESULT_LEN];
111- uint8_t md5_hmac_out[] = "\x75\x0c\x78\x3e\x6a\xb0\xb5\x03\xea\xa8\x6e\x31\x0a\x5d\xb7\x38";
112 uint8_t sha1_out[] = "\x8f\x82\x03\x94\xf9\x53\x35\x18\x20\x45\xda\x24\xf3\x4d\xe5\x2b\xf8\xbc\x34\x32";
113 int i;
114
115diff --git a/tests/sha_speed.c b/tests/sha_speed.c
116index e5c6efe..9f2c8cc 100644
117--- a/tests/sha_speed.c
118+++ b/tests/sha_speed.c
119@@ -296,7 +296,6 @@ int main(void)
120 int fd;
121 int fdc;
122 int err;
123- int i;
124 struct session_op sess;
125
126 signal(SIGALRM, alarm_handler);
127--
1282.10.2
129