]> git.baikalelectronics.ru Git - kernel.git/commit
ice: switch: Simplify memory allocation
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 4 Sep 2022 14:18:02 +0000 (16:18 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 6 Sep 2022 20:55:47 +0000 (13:55 -0700)
commit4bbad8af71145526bf74d2c78a40caf3fd6ea73f
tree23032f6fa4aeef0ce9436ba6ae68c93e9a5f728f
parent9c4b5b9000d22c100a18a3f701bd885fabc6ebfd
ice: switch: Simplify memory allocation

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

use kzalloc()/kfree() instead.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_switch.c