diff options
| author | Rasmus Villemoes <[email protected]> | 2026-04-21 09:54:38 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2026-05-12 15:38:00 -0600 |
| commit | 4ef201e607ebed2432ee929446e3fb9b57c53a54 (patch) | |
| tree | e619ebada0b2c2595fc52f4a88acc94b3a13b696 /scripts/basic | |
| parent | 11168813bf9c088e1fce8a96f4b493ee815c966b (diff) | |
drivers/core: use memdup() instead of malloc()+memcpy()
Use memdup() instead of open-coding it.
In the dm_setup_inst() case, there was never any reason to use
calloc(), as the whole allocation is definitely initialized via the
immediately following memcpy().
Reviewed-by: Simon Glass <[email protected]>
Signed-off-by: Rasmus Villemoes <[email protected]>
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions
