From c8a7b7c05447a5fb26c8dfe8c6fa7f7394c0854d Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Wed, 25 Dec 2024 15:02:07 +0900 Subject: [PATCH] uio_copyfrom/uio_copyto: simplify a bit --- fs/vfs/fs_uio.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/fs/vfs/fs_uio.c b/fs/vfs/fs_uio.c index bb0d27161da9b..4c3482f9bb585 100644 --- a/fs/vfs/fs_uio.c +++ b/fs/vfs/fs_uio.c @@ -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; @@ -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;