Skip to content

Commit 139ee01

Browse files
committed
Remove redundant NULL check
1 parent d1963e5 commit 139ee01

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/we_aes_ctr.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,7 @@ static int we_aes_ctr_ctrl(EVP_CIPHER_CTX *ctx, int type, int arg, void *ptr)
204204
switch (type) {
205205
case EVP_CTRL_INIT:
206206
{
207-
if (aes != NULL) {
208-
XMEMSET(aes, 0, sizeof(we_AesCtr));
209-
}
207+
XMEMSET(aes, 0, sizeof(we_AesCtr));
210208
break;
211209
}
212210
default:

0 commit comments

Comments
 (0)