From 0aa14f91da04dee62498bfebc8b44b58f96fbd45 Mon Sep 17 00:00:00 2001 From: Abdelatif Guettouche Date: Wed, 15 Jun 2022 11:39:41 +0200 Subject: [PATCH] arch/xtensa/esp32_rtc_lowerhalf.c: nitialize ret variable to avoid warnings. Signed-off-by: Abdelatif Guettouche --- arch/xtensa/src/esp32/esp32_rtc_lowerhalf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/xtensa/src/esp32/esp32_rtc_lowerhalf.c b/arch/xtensa/src/esp32/esp32_rtc_lowerhalf.c index b0a01b0831..761a14e5d4 100644 --- a/arch/xtensa/src/esp32/esp32_rtc_lowerhalf.c +++ b/arch/xtensa/src/esp32/esp32_rtc_lowerhalf.c @@ -538,7 +538,7 @@ struct rtc_lowerhalf_s *esp32_rtc_lowerhalf(void) int esp32_rtc_driverinit(void) { - int ret; + int ret = ERROR; struct rtc_lowerhalf_s *lower; /* Instantiate the ESP32 lower-half RTC driver */