diff options
author | Rob Austein <sra@hactrn.net> | 2016-05-15 01:08:17 -0400 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2016-05-15 01:08:17 -0400 |
commit | 53b0dd22287e07ca32184c27b7ec0d75d358bde4 (patch) | |
tree | a1aaa6d88b3d9263a75e8e046d293ee4ccd57dd7 /hash.c | |
parent | e3d9087e3f7c526e8931d64edc7c46aa5c4d14d5 (diff) |
Silence unused variable warning.
Diffstat (limited to 'hash.c')
-rw-r--r-- | hash.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |