diff --git a/drivers/syslog/syslog_rpmsg.c b/drivers/syslog/syslog_rpmsg.c index 10852ec15b..080f9ecb4d 100644 --- a/drivers/syslog/syslog_rpmsg.c +++ b/drivers/syslog/syslog_rpmsg.c @@ -198,7 +198,7 @@ static void syslog_rpmsg_addbuf(FAR struct syslog_rpmsg_s *priv, if (len <= 0) { - return; + return; } if (priv->head + len - priv->tail >= priv->size)