uio_copyfrom/uio_copyto: simplify a bit

This commit is contained in:
YAMAMOTO Takashi 2024-12-25 15:02:07 +09:00
parent b9309efad9
commit 5f2df621cc

View file

@ -177,11 +177,6 @@ void uio_copyfrom(FAR struct uio *uio, size_t offset, FAR const void *buf,
memcpy((FAR uint8_t *)iov->iov_base + offset, buf, blen);
len -= blen;
if (len == 0)
{
break;
}
buf = (const uint8_t *)buf + blen;
iov++;
offset = 0;
@ -227,11 +222,6 @@ void uio_copyto(FAR struct uio *uio, size_t offset, FAR void *buf,
memcpy(buf, (FAR const uint8_t *)iov->iov_base + offset, blen);
len -= blen;
if (len == 0)
{
break;
}
buf = (uint8_t *)buf + blen;
iov++;
offset = 0;