aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorFuqian Huang <[email protected]>2019-07-03 13:28:48 -0300
committerMauro Carvalho Chehab <[email protected]>2019-08-14 05:03:11 -0300
commit48059784ebac75a98e024c29ab301e05a8b8012f (patch)
tree23cc37e91ad214bd5db1c87d14283f7ca72865b5 /tools/perf/scripts/python/bin
parent771560e5d341dc61f9e87bc715f3dbb4efe6ec62 (diff)
media: media/tuners: Use kmemdup rather than duplicating its implementation
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: Fuqian Huang <[email protected]> Signed-off-by: Sean Young <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions