aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2016-05-15 01:08:17 -0400
committerRob Austein <sra@hactrn.net>2016-05-15 01:08:17 -0400
commit53b0dd22287e07ca32184c27b7ec0d75d358bde4 (patch)
treea1aaa6d88b3d9263a75e8e046d293ee4ccd57dd7
parente3d9087e3f7c526e8931d64edc7c46aa5c4d14d5 (diff)
Silence unused variable warning.
-rw-r--r--hash.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hash.c b/hash.c
index 7ed670b..1c82af5 100644
--- a/hash.c
+++ b/hash.c
@@ -487,9 +487,6 @@ static hal_error_t hash_write_digest(const hal_core_t *core,
static hal_error_t hash_write_block(hal_hash_state_t * const state)
{
- uint8_t ctrl_cmd[4];
- hal_error_t err;
-
assert(state != NULL && state->descriptor != NULL && state->driver != NULL);
assert(state->descriptor->block_length % 4 == 0);
@@ -502,6 +499,9 @@ static hal_error_t hash_write_block(hal_hash_state_t * const state)
#if RPC_CLIENT == RPC_CLIENT_MIXED
return state->driver->sw_core(state);
#else
+ uint8_t ctrl_cmd[4];
+ hal_error_t err;
+
if (HAL_ENABLE_SOFTWARE_HASH_CORES && (state->flags & STATE_FLAG_SOFTWARE_CORE) != 0)
return state->driver->sw_core(state);