Fix greater-than-or-equal-to-zero issue

unsigned_compare: This greater-than-or-equal-to-zero comparison without a signed value is always true. conn->lc_crefs >= 0

Signed-off-by: Shoukui Zhang <zhangshoukui@xiaomi.com>
This commit is contained in:
Shoukui Zhang 2024-03-27 19:21:45 +08:00 committed by Xiang Xiao
parent 3862b71728
commit 3f3ad34f42

View File

@ -317,7 +317,7 @@ void local_free(FAR struct local_conn_s *conn)
void local_addref(FAR struct local_conn_s *conn)
{
DEBUGASSERT(conn->lc_crefs >= 0 && conn->lc_crefs < 255);
DEBUGASSERT(conn->lc_crefs < 255);
conn->lc_crefs++;
}