[PATCH 2/8] stdio: drop stdio_clone
Simon Glass
sjg at chromium.org
Mon Apr 13 16:56:54 CEST 2026
On 2026-04-12T19:59:41, Rasmus Villemoes <ravi at prevas.dk> wrote:
> stdio: drop stdio_clone
>
> The helper stdio_clone only has a single caller, so it certainly
> doesn't need to be public. But in fact, it is merely an open-coded
> memdup() - which for some reason uses calloc() even if the whole
> allocation is obviously immediately overwritten.
>
> Drop it and just use memdup() directly.
>
> Signed-off-by: Rasmus Villemoes <ravi at prevas.dk>
>
> common/stdio.c | 18 +-----------------
> include/stdio_dev.h | 1 -
> 2 files changed, 1 insertion(+), 18 deletions(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list