]> git.ipfire.org Git - thirdparty/u-boot.git/commit
lib/string.c: drop pointless __HAVE_ARCH_STRDUP
authorRasmus Villemoes <ravi@prevas.dk>
Tue, 21 Apr 2026 07:54:33 +0000 (09:54 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 12 May 2026 21:38:00 +0000 (15:38 -0600)
commit349d148f16d83da3b1e3475be0e43bfda4f4ab71
tree581addc68b59cb53a95c63d3f33b3f418707d12a
parent719cacb92e039308e23cbd6b653275e939a5aca5
lib/string.c: drop pointless __HAVE_ARCH_STRDUP

There has 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.

Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Rasmus Villemoes <ravi@prevas.dk>
include/linux/string.h
lib/string.c