Remove unused variable. Thanks @pauli-oracle
authorJon Spillett <jon.spillett@oracle.com>
Wed, 12 Apr 2017 01:56:45 +0000 (11:56 +1000)
committerMatt Caswell <matt@openssl.org>
Wed, 12 Apr 2017 09:27:16 +0000 (10:27 +0100)
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3177)

test/bftest.c

index 2bba06010087179d8a954e2c3e9f6c6e2d256769..978fd582b1ac0654bd3c25b98eec6052752fb18f 100644 (file)
@@ -339,14 +339,14 @@ static int test_bf_ecb(int n)
 
 static int test_bf_set_key(int n)
 {
-    int i, ret = 1;
+    int ret = 1;
     BF_KEY key;
     unsigned char out[8];
 
     BF_set_key(&key, n+1, key_test);
     BF_ecb_encrypt(key_data, out, &key, BF_ENCRYPT);
     /* mips-sgi-irix6.5-gcc  vv  -mabi=64 bug workaround */
-    if (!TEST_mem_eq(out, 8, &(key_out[i = n][0]), 8))
+    if (!TEST_mem_eq(out, 8, &(key_out[n][0]), 8))
         ret = 0;
 
     return ret;