From 99ad3e9bcf340a41b150291ff67f3e6170dc6561 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 19 Jun 2016 09:41:35 -0600 Subject: [PATCH] Need to capture return value from ramlog_syslog_initialize() --- drivers/syslog/syslog_initialize.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/syslog/syslog_initialize.c b/drivers/syslog/syslog_initialize.c index cda142268f..7c4956c6af 100644 --- a/drivers/syslog/syslog_initialize.c +++ b/drivers/syslog/syslog_initialize.c @@ -81,12 +81,13 @@ int syslog_initialize(void) #elif defined(CONFIG_RAMLOG_SYSLOG) /* Use the RAMLOG as the SYSLOG device */ - ramlog_syslog_initialize(); -#endif + ret = ramlog_syslog_initialize(); + #else /* Nothing needs to be done */ ret = 0; + #endif return ret;