diff options
| author | 2026-07-20 09:43:16 +0800 | |
|---|---|---|
| committer | 2026-07-27 16:31:55 -0700 | |
| commit | 18bf0ac84334aac237ecf14a8c427866109fb8c9 (patch) | |
| tree | bb3ac9689ece32aaeb01c2ad5163199b12b55a62 /scripts/Makefile.thinlto | |
| parent | net: enetc: use alloc_etherdev_mqs() to create netdev for VF driver (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 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
