Skip to content

Commit 323ebef

Browse files
committed
drivers: crypto: it8xxx2_evb: fix a shadow variable error
Fix a build error: crypto_it8xxx2_sha.c:99:26: warning: declaration of 'i' shadows a previous local [-Wshadow] 99 | for (int i = 0; i < ARRAY_SIZE(sha256_k); i++) { | ^ crypto_it8xxx2_sha.c:88:13: note: shadowed declaration is here 88 | int i; Signed-off-by: Fabio Baltieri <[email protected]>
1 parent cc4d1bd commit 323ebef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/crypto/crypto_it8xxx2_sha.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ static void it8xxx2_sha256_init(bool init_k)
9696
}
9797
/* Initialize array of round constants */
9898
if (init_k) {
99-
for (int i = 0; i < ARRAY_SIZE(sha256_k); i++) {
99+
for (i = 0; i < ARRAY_SIZE(sha256_k); i++) {
100100
chip_ctx.k[i] = sha256_k[i];
101101
}
102102
}

0 commit comments

Comments
 (0)