summaryrefslogtreecommitdiff
path: root/scripts/const_structs.checkpatch
diff options
context:
space:
mode:
authorRasmus Villemoes <[email protected]>2026-04-21 09:54:38 +0200
committerTom Rini <[email protected]>2026-05-12 15:38:00 -0600
commit4ef201e607ebed2432ee929446e3fb9b57c53a54 (patch)
treee619ebada0b2c2595fc52f4a88acc94b3a13b696 /scripts/const_structs.checkpatch
parent11168813bf9c088e1fce8a96f4b493ee815c966b (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/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions