aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/flamegraph.py
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2022-06-07 12:49:22 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-06-10 13:37:01 +0200
commitacf90b4d52e6965cbc3b115a68e0f063f703719c (patch)
treede333e559fef0052de1830169c5efae454e17e8f /tools/perf/scripts/python/flamegraph.py
parenttty/vt: consolemap: zero uni_pgdir using kcalloc() (diff)
tty/vt: consolemap: use sizeof(*pointer) instead of sizeof(type)
It is preferred to use sizeof(*pointer) instead of sizeof(type). First, the type of the variable can change and one needs not change the former (unlike the latter). Second, the latter is error-prone due to (u16), (u16 *), and (u16 **) mixture here. Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Jiri Slaby <jslaby@suse.cz> Link: https://lore.kernel.org/r/20220607104946.18710-12-jslaby@suse.cz Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions