You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by gu...@apache.org on 2021/10/19 21:42:10 UTC

[incubator-nuttx] 06/08: esp32c3_bignum.c & esp32c3_sha.c: Fix some trivial nxstyle complaints.

This is an automated email from the ASF dual-hosted git repository.

gustavonihei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit c83c1071ccb222f160b5dae732e44e591a96995c
Author: Abdelatif Guettouche <ab...@espressif.com>
AuthorDate: Fri Oct 15 13:35:23 2021 +0200

    esp32c3_bignum.c & esp32c3_sha.c: Fix some trivial nxstyle complaints.
    
    Signed-off-by: Abdelatif Guettouche <ab...@espressif.com>
---
 arch/risc-v/src/esp32c3/esp32c3_bignum.c | 2 +-
 arch/risc-v/src/esp32c3/esp32c3_sha.c    | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/risc-v/src/esp32c3/esp32c3_bignum.c b/arch/risc-v/src/esp32c3/esp32c3_bignum.c
index a36a8a3..6728ec4 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 dd71d60..6e800df 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);
     }