Fix some errors in debug assertions
This commit is contained in:
parent
62b706fa68
commit
f421723fbd
|
@ -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 */
|
/* Adjust the number of bytes remaining to be read from the packet */
|
||||||
|
|
||||||
DEBUGASSERT(tmplen <= remain);
|
DEBUGASSERT(tmplen <= remaining);
|
||||||
remaining -= tmplen;
|
remaining -= tmplen;
|
||||||
}
|
}
|
||||||
while (remaining > 0);
|
while (remaining > 0);
|
||||||
|
|
|
@ -111,7 +111,7 @@ int local_fifo_read(int fd, FAR uint8_t *buf, size_t *len)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
DEBUGASSERT(nread <= len);
|
DEBUGASSERT(nread <= remaining);
|
||||||
remaining -= nread;
|
remaining -= nread;
|
||||||
buf += nread;
|
buf += nread;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue