Skip to content

Commit 11b207e

Browse files
committed
Remove unused variable
1 parent e8d3e19 commit 11b207e

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

wolfcrypt/src/port/maxim/max3266x.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1197,7 +1197,7 @@ WOLFSSL_API int wc_InitSha384(wc_Sha384* sha384)
11971197
WOLFSSL_API int wc_Sha384Update(wc_Sha384* sha384, const unsigned char* data,
11981198
unsigned int len)
11991199
{
1200-
word32 loLen, hiLen, oldLo;
1200+
word32 loLen, hiLen;
12011201
int ret;
12021202
if (sha384 == NULL || (data == NULL && len > 0)) {
12031203
return BAD_FUNC_ARG;
@@ -1207,7 +1207,6 @@ WOLFSSL_API int wc_Sha384Update(wc_Sha384* sha384, const unsigned char* data,
12071207
* uses word32. We bridge by converting here. */
12081208
loLen = (word32)sha384->loLen;
12091209
hiLen = (word32)(sha384->loLen >> 32);
1210-
oldLo = loLen;
12111210

12121211
ret = wc_MXC_TPU_SHA_Update((word32*)sha384->digest,
12131212
(word32*)sha384->buffer, &sha384->buffLen,
@@ -1217,7 +1216,6 @@ WOLFSSL_API int wc_Sha384Update(wc_Sha384* sha384, const unsigned char* data,
12171216

12181217
/* Write back the updated length */
12191218
sha384->loLen = (word64)loLen | ((word64)hiLen << 32);
1220-
(void)oldLo;
12211219
return ret;
12221220
}
12231221

0 commit comments

Comments
 (0)