]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Do not use devm* functions for local uses
authorTony Nguyen <anthony.l.nguyen@intel.com>
Fri, 8 Nov 2019 14:23:25 +0000 (06:23 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 22 Nov 2019 21:15:12 +0000 (13:15 -0800)
commit42af0ce64bd4c0d88ec982d713733fc4b70202af
treee7812f5383bf60e1a24d1963ef86a4bfa0602c08
parent26fa6008772a232b536d6c69b5ba5547755af33d
ice: Do not use devm* functions for local uses

In situations where we alloc and free memory within the same function do
not use the devm_* variants; use regular alloc and free functions. Remove
any unused vars if there are no usages after these changes.

Also, replace an allocate and copy with kmemdup() and remove an
unnecessary memset() to 0 after a kzalloc().

Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/ice_dcb_lib.c
drivers/net/ethernet/intel/ice/ice_ethtool.c
drivers/net/ethernet/intel/ice/ice_lib.c
drivers/net/ethernet/intel/ice/ice_main.c
drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c