aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorHaowen Bai <[email protected]>2022-05-24 04:42:21 +0100
committerMauro Carvalho Chehab <[email protected]>2022-06-20 10:30:35 +0100
commit8b0f690de13625c80367bf56fe3ed5eaa5b33b27 (patch)
treee790aadf21e05df43aee2068e3afb658fe2715e9 /tools/perf/scripts/python/syscall-counts.py
parent5c2111c29689239c31e82ee1fe287f03be94a68c (diff)
media: mediatek: vcodec: Use kmemdup rather than kmalloc/memcpy
kmemdup is introduced to duplicate a region of memory in a neat way. Rather than kmalloc/kzalloc + memcpy, which the programmer needs to write the size twice (sometimes lead to mistakes), kmemdup improves readability, leads to smaller code and also reduce the chances of mistakes. Suggestion to use kmemdup rather than using kmalloc/kzalloc + memcpy. Signed-off-by: Haowen Bai <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions