From 40f63453f4ef5e2252e8deb1a25accf43880edf6 Mon Sep 17 00:00:00 2001 From: "chao.an" Date: Sat, 19 Mar 2022 15:52:22 +0800 Subject: [PATCH] syslog/channel: minor fix to avoid unreachabled return Signed-off-by: chao.an --- drivers/syslog/syslog_channel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/syslog/syslog_channel.c b/drivers/syslog/syslog_channel.c index c725590824e..833c4fb358e 100644 --- a/drivers/syslog/syslog_channel.c +++ b/drivers/syslog/syslog_channel.c @@ -175,9 +175,9 @@ static int syslog_default_putc(FAR struct syslog_channel_s *channel, int ch) #if defined(CONFIG_ARCH_LOWPUTC) return up_putc(ch); -#endif - +#else return ch; +#endif } static ssize_t syslog_default_write(FAR struct syslog_channel_s *channel,