From 1abcae291cfaace63daca69ca0c138c578614c50 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Thu, 2 Jan 2020 16:07:35 +0100 Subject: [PATCH] cppcheck --- client/emv/crypto_polarssl.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/client/emv/crypto_polarssl.c b/client/emv/crypto_polarssl.c index a6f69a529..8ed38fb05 100644 --- a/client/emv/crypto_polarssl.c +++ b/client/emv/crypto_polarssl.c @@ -150,9 +150,7 @@ static struct crypto_pk *crypto_pk_polarssl_open_priv_rsa(va_list vl) { static int myrand(void *rng_state, unsigned char *output, size_t len) { size_t i; - - if (rng_state != NULL) - rng_state = NULL; + rng_state = NULL; for (i = 0; i < len; ++i) output[i] = rand();