ice: Simplify memory allocation in ice_sched_init_port()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 4 Sep 2022 14:22:46 +0000 (16:22 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 6 Sep 2022 20:55:47 +0000 (13:55 -0700)
commit04cbaa6c08e3974760c7ac5a70256d736444f6f0
treec294cb430a817a29976d85b6ff3443886c68429d
parent1b9e740dd733d1db4e790e94a4e5021ad17d92f7
ice: Simplify memory allocation in ice_sched_init_port()

'buf' is locale to the ice_sched_init_port() function.
There is no point in using devm_kzalloc()/devm_kfree().

use kzalloc()/kfree() instead.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_sched.c