aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorFuqian Huang <[email protected]>2019-07-04 00:29:34 +0800
committerKalle Valo <[email protected]>2019-10-02 07:16:10 +0300
commitab8c31dd8c8accea11bd59075bca711579512adc (patch)
tree25fa844f1e9561b15632cdb4876070a13dfda2b1 /tools/perf/scripts/python/syscall-counts.py
parent0a3ce169476feca7869255c681884ed227a319c8 (diff)
net/wireless: 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: Kalle Valo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions