Skip to content

Commit

Permalink
uio_copyfrom/uio_copyto: simplify a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
yamt committed Dec 25, 2024
1 parent 33e62eb commit c8a7b7c
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions fs/vfs/fs_uio.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,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;
Expand Down Expand Up @@ -228,11 +223,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;
Expand Down

0 comments on commit c8a7b7c

Please sign in to comment.