Skip to content

Commit 10d4b1d

Browse files
committed
wolfcrypt/src/aes.c: fix -Wunused-variable in wc_AesSetKey().
1 parent 017ac97 commit 10d4b1d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

wolfcrypt/src/aes.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4341,7 +4341,6 @@ static WARN_UNUSED_RESULT int wc_AesDecrypt(
43414341
int wc_AesSetKey(Aes* aes, const byte* userKey, word32 keylen,
43424342
const byte* iv, int dir)
43434343
{
4344-
int ret;
43454344
if ((aes == NULL) || (userKey == NULL)) {
43464345
return BAD_FUNC_ARG;
43474346
}
@@ -4367,7 +4366,7 @@ static WARN_UNUSED_RESULT int wc_AesDecrypt(
43674366
#ifdef WOLF_CRYPTO_CB
43684367
if (aes->devId != INVALID_DEVID) {
43694368
#ifdef WOLF_CRYPTO_CB_AES_SETKEY
4370-
ret = wc_CryptoCb_AesSetKey(aes, userKey, keylen);
4369+
int ret = wc_CryptoCb_AesSetKey(aes, userKey, keylen);
43714370
if (ret == 0) {
43724371
/* Callback succeeded - SE owns the key */
43734372
aes->keylen = (int)keylen;

0 commit comments

Comments
 (0)