From 5c6a30c00bfd06cc4750a75daa0d5334262ecc67 Mon Sep 17 00:00:00 2001 From: Abdelatif Guettouche Date: Wed, 29 Sep 2021 13:43:12 +0200 Subject: [PATCH] esp32_rng.c: Remove the initialization guard. The init function is called only once during startup. Signed-off-by: Abdelatif Guettouche --- arch/xtensa/src/esp32/esp32_rng.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/arch/xtensa/src/esp32/esp32_rng.c b/arch/xtensa/src/esp32/esp32_rng.c index 75397395d2..af968c4b95 100644 --- a/arch/xtensa/src/esp32/esp32_rng.c +++ b/arch/xtensa/src/esp32/esp32_rng.c @@ -128,15 +128,6 @@ uint32_t IRAM_ATTR esp_random(void) static int esp32_rng_initialize(void) { - static bool first_flag = true; - - if (false == first_flag) - { - return OK; - } - - first_flag = false; - _info("Initializing RNG\n"); memset(&g_rngdev, 0, sizeof(struct rng_dev_s));