summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorWei Fang <wei.fang@nxp.com>2026-07-20 09:43:16 +0800
committerJakub Kicinski <kuba@kernel.org>2026-07-27 16:31:55 -0700
commit18bf0ac84334aac237ecf14a8c427866109fb8c9 (patch)
treebb3ac9689ece32aaeb01c2ad5163199b12b55a62 /tools/perf/scripts/python/task-analyzer.py
parentf0c1f31afd97abcdaa70d78ac556bad84fc41871 (diff)
net: enetc: use kzalloc_flex() for enetc_psfp_gate allocation
Replace the open-coded struct_size() + kzalloc() pattern with the kzalloc_flex() helper when allocating struct enetc_psfp_gate. This removes the intermediate entries_size local variable and makes the allocation site more concise. Signed-off-by: Wei Fang <wei.fang@nxp.com> Reviewed-by: Joe Damato <joe@dama.to> Link: https://patch.msgid.link/20260720014317.1059359-15-wei.fang@oss.nxp.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions