[Cryptech-Commits] [sw/libhal] branch rpc updated: Silence unused variable warning.

git at cryptech.is git at cryptech.is
Sun May 15 16:27:16 UTC 2016


This is an automated email from the git hooks/post-receive script.

sra at hactrn.net pushed a commit to branch rpc
in repository sw/libhal.

The following commit(s) were added to refs/heads/rpc by this push:
       new  53b0dd2   Silence unused variable warning.
53b0dd2 is described below

commit 53b0dd22287e07ca32184c27b7ec0d75d358bde4
Author: Rob Austein <sra at hactrn.net>
AuthorDate: Sun May 15 01:08:17 2016 -0400

    Silence unused variable warning.
---
 hash.c | 6 +++---
 1 file 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);
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Commits mailing list