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:
parent
3862b71728
commit
3f3ad34f42
@ -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++;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user