Skip to content

Commit d404a43

Browse files
h-filalinasahlpa
authored andcommitted
[sw] clang format fix
Signed-off-by: Hakim Filali <[email protected]>
1 parent 4110f37 commit d404a43

File tree

1 file changed

+2
-4
lines changed
  • sw/device/lib/crypto/drivers

1 file changed

+2
-4
lines changed

sw/device/lib/crypto/drivers/otbn.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,7 @@ status_t otbn_dmem_write(size_t num_words, const uint32_t *src,
142142
barrierw(idx);
143143

144144
// Perform the write.
145-
abs_mmio_write32(kBase + OTBN_DMEM_REG_OFFSET + dest + idx_word,
146-
src[idx]);
145+
abs_mmio_write32(kBase + OTBN_DMEM_REG_OFFSET + dest + idx_word, src[idx]);
147146

148147
// Update the CRC. According to the OTBN documentation, each CRC update
149148
// consists of 48-bit: {imem, idx, wdata}
@@ -163,8 +162,7 @@ status_t otbn_dmem_write(size_t num_words, const uint32_t *src,
163162
// Get the computed (expected) checksum, fetch the checksum from the OTBN
164163
// LOAD_CHECKSUM register, and compare both registers.
165164
uint32_t checksum_expected = crc32_finish(&ctx);
166-
uint32_t checksum =
167-
abs_mmio_read32(kBase + OTBN_LOAD_CHECKSUM_REG_OFFSET);
165+
uint32_t checksum = abs_mmio_read32(kBase + OTBN_LOAD_CHECKSUM_REG_OFFSET);
168166
HARDENED_CHECK_EQ(checksum, checksum_expected);
169167

170168
return OTCRYPTO_OK;

0 commit comments

Comments
 (0)