aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/test-sha256/test-sha256.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sw/test-sha256/test-sha256.c b/sw/test-sha256/test-sha256.c
index bc3190c..0ea0d8c 100644
--- a/sw/test-sha256/test-sha256.c
+++ b/sw/test-sha256/test-sha256.c
@@ -67,9 +67,9 @@
//------------------------------------------------------------------------------
uint32_t get_w32(uint32_t addr)
{
- unsigned int read_addr;
unsigned int read_data;
- eim_read_32(read_addr, &read_data);
+
+ eim_read_32(addr, &read_data);
return read_data;
}
@@ -137,7 +137,6 @@ void test_dual_block()
//------------------------------------------------------------------------------
void test_sha256()
{
- uint32_t i;
test_single_block();
@@ -149,7 +148,6 @@ void test_sha256()
int config_eim()
{
int ok;
- unsigned int i;
// try to setup eim (return value should be 1)
printf("Configuring EIM .. ");
@@ -162,6 +160,7 @@ int config_eim()
printf("EIM Setup ok.\n");
}
+ return EXIT_SUCCESS;
}
//------------------------------------------------------------------------------