diff options
| author | Qianfeng Rong <rongqianfeng@vivo.com> | 2025-08-16 17:06:52 +0800 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2025-08-18 17:49:51 -0700 |
| commit | 4490d075c2d989f3403059cbd30775ae21dbd754 (patch) | |
| tree | fff56291cd5cd120ad270cf32ce593468018f1e6 /rust/helpers/helpers.c | |
| parent | ab4ee77ed9bddfc1c3461b42ef4875068928d2e6 (diff) | |
eth: intel: use vmalloc_array() to simplify code
Remove array_size() calls and replace vmalloc() with vmalloc_array() to
simplify the code and maintain consistency with existing kmalloc_array()
usage.
vmalloc_array() is also optimized better, resulting in less instructions
being used.
Signed-off-by: Qianfeng Rong <rongqianfeng@vivo.com>
Link: https://patch.msgid.link/20250816090659.117699-2-rongqianfeng@vivo.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions
