diff options
| author | Wei Fang <wei.fang@nxp.com> | 2026-07-20 09:43:16 +0800 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-07-27 16:31:55 -0700 |
| commit | 18bf0ac84334aac237ecf14a8c427866109fb8c9 (patch) | |
| tree | bb3ac9689ece32aaeb01c2ad5163199b12b55a62 /tools/perf/scripts/python | |
| parent | f0c1f31afd97abcdaa70d78ac556bad84fc41871 (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')
0 files changed, 0 insertions, 0 deletions
