ice: ice_sched_remove_elems: replace 1 elem array param by u32
authorPrzemek Kitszel <przemyslaw.kitszel@intel.com>
Tue, 12 Sep 2023 11:59:32 +0000 (07:59 -0400)
committerJakub Kicinski <kuba@kernel.org>
Tue, 3 Oct 2023 19:17:11 +0000 (12:17 -0700)
commitece285af77d00f7f4f9dd311f5cfa866a51c010f
tree930aa1fe5360836b5f788cae85e06e41bc94cdd4
parent26dd68d293fd1c5ac966fb5dd5f6d89de322a541
ice: ice_sched_remove_elems: replace 1 elem array param by u32

Replace array+size params of ice_sched_remove_elems:() by just single u32,
as all callers are using it with "1".

This enables moving from heap-based, to stack-based allocation, what is also
more elegant thanks to DEFINE_FLEX() macro.

Signed-off-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Link: https://lore.kernel.org/r/20230912115937.1645707-3-przemyslaw.kitszel@intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/intel/ice/ice_sched.c