diff --git a/arch/risc-v/src/esp32c3/esp32c3_bignum.c b/arch/risc-v/src/esp32c3/esp32c3_bignum.c index a36a8a3394..6728ec4ffd 100644 --- a/arch/risc-v/src/esp32c3/esp32c3_bignum.c +++ b/arch/risc-v/src/esp32c3/esp32c3_bignum.c @@ -1431,7 +1431,7 @@ int esp32c3_mpi_copy(struct esp32c3_mpi_s *X, } } - i ++; + i++; X->s = Y->s; diff --git a/arch/risc-v/src/esp32c3/esp32c3_sha.c b/arch/risc-v/src/esp32c3/esp32c3_sha.c index dd71d60696..6e800df320 100644 --- a/arch/risc-v/src/esp32c3/esp32c3_sha.c +++ b/arch/risc-v/src/esp32c3/esp32c3_sha.c @@ -251,7 +251,7 @@ static int esp32c3_sha1_block(struct esp32c3_sha1_context_s *ctx, { } - for (i = 0; i < 5; i ++) + for (i = 0; i < 5; i++) { ctx->state[i] = getreg32(SHA_H_0_REG + i * 4); } @@ -357,7 +357,7 @@ static int esp32c3_sha256_block(struct esp32c3_sha256_context_s *ctx, num_block = 7; } - for (i = 0; i < num_block; i ++) + for (i = 0; i < num_block; i++) { ctx->state[i] = getreg32(SHA_H_0_REG + i * 4); }