You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2022/06/15 13:30:00 UTC
[incubator-nuttx] branch master updated: arch/xtensa/esp32_rtc_lowerhalf.c: nitialize ret variable to avoid warnings.
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 0aa14f91da arch/xtensa/esp32_rtc_lowerhalf.c: nitialize ret variable to avoid warnings.
0aa14f91da is described below
commit 0aa14f91da04dee62498bfebc8b44b58f96fbd45
Author: Abdelatif Guettouche <ab...@espressif.com>
AuthorDate: Wed Jun 15 11:39:41 2022 +0200
arch/xtensa/esp32_rtc_lowerhalf.c: nitialize ret variable to avoid
warnings.
Signed-off-by: Abdelatif Guettouche <ab...@espressif.com>
---
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 */