entropy: gd32: Fix build error
entropy_gd32_recover() had not return type defined causing the following issue when building: drivers/entropy/entropy_gd32.c:61:8: error: return type defaults to 'int' [-Werror=implicit-int] Fix it and change the function to void since it was returning a constant 0 that is never checked or used. Signed-off-by: Flavio Ceolin <flavio@hubblenetwork.com>
This commit is contained in:
committed by
Alberto Escolar
parent
bc63b5cd30
commit
4690b7f966
@@ -58,7 +58,7 @@ static bool entropy_gd32_ck48m_ready(void)
|
||||
return (RCU_CTL & RCU_CTL_PLLSTB) != 0U;
|
||||
}
|
||||
|
||||
static entropy_gd32_recover(void)
|
||||
static void entropy_gd32_recover(void)
|
||||
{
|
||||
/*
|
||||
* For GD32F4xx TRNG the HAL exposes status bits (CECS/SECS) but provides
|
||||
@@ -69,8 +69,6 @@ static entropy_gd32_recover(void)
|
||||
trng_deinit();
|
||||
entropy_gd32_clear_int_flags();
|
||||
trng_enable();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int entropy_gd32_wait_drdy(void)
|
||||
|
||||
Reference in New Issue
Block a user