aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/timerlist.py
diff options
context:
space:
mode:
authorFuqian Huang <[email protected]>2019-07-03 21:17:27 +0800
committerJan Kara <[email protected]>2019-07-03 16:24:25 +0200
commit90f15ac9fa7e7ff66e0980309d8184bff0611624 (patch)
tree7a486f87d06779c52b6ebb2ea95383d84fbcda68 /scripts/gdb/linux/timerlist.py
parent555b2c3da1fc3d1c5cc133e9353354c40fbfe336 (diff)
ext2: Use kmemdup rather than duplicating its implementation
kmemdup is introduced to duplicate a region of memory in a neat way. Rather than kmalloc/kzalloc + memset, 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 + memset. Signed-off-by: Fuqian Huang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jan Kara <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/timerlist.py')
0 files changed, 0 insertions, 0 deletions