This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit b9ad339fbc64c82b4d91097d13e8fbbad1552395 Author: fangxinyong <[email protected]> AuthorDate: Wed Mar 4 18:00:20 2026 +0800 drivers/syslog/syslog_rpmsg: compare the length with 0 using == len is a size_t, so len <= 0 means len == 0. Write it that way, as Coverity reports the unsigned comparison. Signed-off-by: fangxinyong <[email protected]> --- drivers/syslog/syslog_rpmsg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/syslog/syslog_rpmsg.c b/drivers/syslog/syslog_rpmsg.c index a7543d5a019..61ff18e4b19 100644 --- a/drivers/syslog/syslog_rpmsg.c +++ b/drivers/syslog/syslog_rpmsg.c @@ -232,7 +232,7 @@ static void syslog_rpmsg_addbuf(FAR struct syslog_rpmsg_s *priv, irqstate_t flags; uint32_t tail; - if (len <= 0 || priv->header == NULL) + if (len == 0 || priv->header == NULL) { return; }
