esp32_rng.c: Remove the initialization guard. The init function is
called only once during startup. Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
This commit is contained in:
parent
6a262c5203
commit
5c6a30c00b
@ -128,15 +128,6 @@ uint32_t IRAM_ATTR esp_random(void)
|
|||||||
|
|
||||||
static int esp32_rng_initialize(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");
|
_info("Initializing RNG\n");
|
||||||
|
|
||||||
memset(&g_rngdev, 0, sizeof(struct rng_dev_s));
|
memset(&g_rngdev, 0, sizeof(struct rng_dev_s));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user