[PATCH 3/8] lib/string.c: drop pointless __HAVE_ARCH_STRDUP
Simon Glass
sjg at chromium.org
Mon Apr 13 16:57:13 CEST 2026
Hi Rasmus,
On 2026-04-12T19:59:41, Rasmus Villemoes <ravi at prevas.dk> wrote:
> lib/string.c: drop pointless __HAVE_ARCH_STRDUP
>
> There have never been an arch-specific optimized implementation of
> str[n]dup, nor is there likely to ever be one, because unlike their
> cousins strlen(), strcpy() and similar that simply read/write the
> src/dst, the dup functions by definition involve memory allocation. So
> drop this irrelevant cpp guard.
>
> Signed-off-by: Rasmus Villemoes <ravi at prevas.dk>
>
> include/linux/string.h | 3 +--
> lib/string.c | 2 --
> 2 files changed, 1 insertion(+), 4 deletions(-)
> There have never been an arch-specific optimized implementation of
There has never been
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list