ice: Remove managed memory usage in ice_get_fw_log_cfg()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 11 Jun 2023 20:44:13 +0000 (22:44 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 22 Jun 2023 18:14:24 +0000 (11:14 -0700)
commit1dacc49782e67d4316b46329e416c24473c0369c
tree441f4f947f2f711a3230354cf43b241ac8a5d984
parentad667d626825383b626ad6ed38d6205618abb115
ice: Remove managed memory usage in ice_get_fw_log_cfg()

There is no need to use managed memory allocation here. The memory is
released at the end of the function.

Use kzalloc()/kfree() to simplify the code.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_common.c