mirror of
https://github.com/apache/nuttx.git
synced 2025-01-12 22:08:35 +08:00
uio_copyfrom/uio_copyto: simplify a bit
This commit is contained in:
parent
b9309efad9
commit
5f2df621cc
1 changed files with 0 additions and 10 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue