[Cryptech-Commits] [sw/libhal] branch master updated: FMC cleanup: constification, gratuitous pointer.

git at cryptech.is git at cryptech.is
Sun May 27 20:56:13 UTC 2018


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

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

The following commit(s) were added to refs/heads/master by this push:
     new 78992f6  FMC cleanup: constification, gratuitous pointer.
78992f6 is described below

commit 78992f6aec779a1dc56429c60bfea276405d7a8c
Author: Rob Austein <sra at hactrn.net>
AuthorDate: Sun May 27 16:54:26 2018 -0400

    FMC cleanup: constification, gratuitous pointer.
---
 hal_io_fmc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hal_io_fmc.c b/hal_io_fmc.c
index 25ed8f3..8a32921 100644
--- a/hal_io_fmc.c
+++ b/hal_io_fmc.c
@@ -114,7 +114,7 @@ hal_error_t hal_io_write(const hal_core_t *core, hal_addr_t offset, const uint8_
   for (; len > 0; offset += 4, buf += 4, len -= 4) {
     uint32_t val;
     val = htonl(*(uint32_t *)buf);
-    fmc_write_32(offset, &val);
+    fmc_write_32(offset, val);
   }
 
   return HAL_OK;

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


More information about the Commits mailing list