mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-08-10 07:29:59 -04:00
fw: remove address-of operator (&) where it is not needed
- `digest` is an array and hence the address of the first element is returned. - This will keep it more consistent with the rest of the code base. - Fixed misspelled comment.
This commit is contained in:
parent
26045bfcd1
commit
30f5d359ea
1 changed files with 2 additions and 2 deletions
|
@ -301,7 +301,7 @@ static enum state loading_commands(const struct frame_header *hdr,
|
|||
// And return the digest in final
|
||||
// response
|
||||
rsp[0] = STATUS_OK;
|
||||
memcpy_s(&rsp[1], CMDLEN_MAXBYTES - 1, &ctx->digest,
|
||||
memcpy_s(&rsp[1], CMDLEN_MAXBYTES - 1, ctx->digest,
|
||||
32);
|
||||
fwreply(*hdr, FW_RSP_LOAD_APP_DATA_READY, rsp);
|
||||
|
||||
|
@ -418,7 +418,7 @@ int main(void)
|
|||
|
||||
print_hw_version();
|
||||
|
||||
// Let the app know the function adddress for blake2s()
|
||||
// Let the app know the function address for blake2s()
|
||||
*fw_blake2s_addr = (uint32_t)blake2s;
|
||||
|
||||
/*@-mustfreeonly@*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue