diff options
author | Ammar Faizi <ammarfaizi2@gnuweeb.org> | 2023-09-02 20:35:04 +0700 |
---|---|---|
committer | Thomas Weißschuh <linux@weissschuh.net> | 2023-10-12 21:14:02 +0200 |
commit | 5dfc79b20e467f59878c86e9203c5c291d496b45 (patch) | |
tree | bcdffc6ef5f636de41d4b9920cd92c0b7206cdaf /tools | |
parent | 12108aa8c1a13bdf4024f1e2e94a6121ac644d2c (diff) | |
download | linux-stable-5dfc79b20e467f59878c86e9203c5c291d496b45.tar.gz linux-stable-5dfc79b20e467f59878c86e9203c5c291d496b45.tar.bz2 linux-stable-5dfc79b20e467f59878c86e9203c5c291d496b45.zip |
tools/nolibc: string: Remove the `_nolibc_memcpy_down()` function
This nolibc internal function is not used. Delete it. It was probably
supposed to handle memmove(), but today the memmove() has its own
implementation.
Signed-off-by: Ammar Faizi <ammarfaizi2@gnuweeb.org>
Reviewed-by: Alviro Iskandar Setiawan <alviro.iskandar@gnuweeb.org>
Signed-off-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/include/nolibc/string.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/tools/include/nolibc/string.h b/tools/include/nolibc/string.h index 1bad6121ef8c..22dcb3f566ba 100644 --- a/tools/include/nolibc/string.h +++ b/tools/include/nolibc/string.h @@ -39,16 +39,6 @@ void *_nolibc_memcpy_up(void *dst, const void *src, size_t len) return dst; } -static __attribute__((unused)) -void *_nolibc_memcpy_down(void *dst, const void *src, size_t len) -{ - while (len) { - len--; - ((char *)dst)[len] = ((const char *)src)[len]; - } - return dst; -} - #ifndef NOLIBC_ARCH_HAS_MEMMOVE /* might be ignored by the compiler without -ffreestanding, then found as * missing. |