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 Jan 8, 2025
1 parent 7a8d5c1 commit 5544104
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 @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 5544104

Please sign in to comment.