diff options
| author | Rasmus Villemoes <[email protected]> | 2026-04-21 09:54:32 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2026-05-12 15:38:00 -0600 |
| commit | 719cacb92e039308e23cbd6b653275e939a5aca5 (patch) | |
| tree | e18a7908c4891128540d85d9a5646df0c5d0d723 /include | |
| parent | ca1c292d2ee6bcb06be71400d25ae37e9dc2c1aa (diff) | |
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.
Reviewed-by: Simon Glass <[email protected]>
Signed-off-by: Rasmus Villemoes <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/stdio_dev.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/stdio_dev.h b/include/stdio_dev.h index f7f9c10199e..d93604331ff 100644 --- a/include/stdio_dev.h +++ b/include/stdio_dev.h @@ -96,7 +96,6 @@ int stdio_add_devices(void); int stdio_deregister_dev(struct stdio_dev *dev, int force); struct list_head *stdio_get_list(void); struct stdio_dev *stdio_get_by_name(const char *name); -struct stdio_dev *stdio_clone(struct stdio_dev *dev); int drv_lcd_init(void); int drv_video_init(void); |
