wolfssl: fix compilation with /dev/crypto
[openwrt/openwrt.git] / package / libs / wolfssl / patches / 400-wolfcrypt-src-port-devcrypto-devcrypto_aes.c-remove-.patch
1 From 096889927d9528d4fbeb3aab56d1fe8225d2e7ec Mon Sep 17 00:00:00 2001
2 From: Daniel Pouzzner <douzzer@wolfssl.com>
3 Date: Thu, 14 Apr 2022 20:23:31 -0500
4 Subject: [PATCH] wolfcrypt/src/port/devcrypto/devcrypto_aes.c: remove
5 redundant "int ret" in wc_AesCtrEncrypt() (supersedes #5052).
6
7
8 diff --git a/wolfcrypt/src/port/devcrypto/devcrypto_aes.c b/wolfcrypt/src/port/devcrypto/devcrypto_aes.c
9 index 3bc1d5bb1..28e145e27 100644
10 --- a/wolfcrypt/src/port/devcrypto/devcrypto_aes.c
11 +++ b/wolfcrypt/src/port/devcrypto/devcrypto_aes.c
12 @@ -208,7 +208,6 @@ int wc_AesCtrEncrypt(Aes* aes, byte* out, const byte* in, word32 sz)
13 int ret;
14 struct crypt_op crt;
15 byte* tmp;
16 - int ret;
17
18 if (aes == NULL || out == NULL || in == NULL) {
19 return BAD_FUNC_ARG;