Skip to content
Snippets Groups Projects
Commit f421723f authored by Gregory Nutt's avatar Gregory Nutt
Browse files

Fix some errors in debug assertions

parent 62b706fa
No related branches found
No related tags found
No related merge requests found
......@@ -337,7 +337,7 @@ psock_dgram_recvfrom(FAR struct socket *psock, FAR void *buf, size_t len,
/* Adjust the number of bytes remaining to be read from the packet */
DEBUGASSERT(tmplen <= remain);
DEBUGASSERT(tmplen <= remaining);
remaining -= tmplen;
}
while (remaining > 0);
......
......@@ -111,7 +111,7 @@ int local_fifo_read(int fd, FAR uint8_t *buf, size_t *len)
}
else
{
DEBUGASSERT(nread <= len);
DEBUGASSERT(nread <= remaining);
remaining -= nread;
buf += nread;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment