ice: correct memory allocation call
authorBruce Allan <bruce.w.allan@intel.com>
Tue, 2 Mar 2021 18:12:10 +0000 (10:12 -0800)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Wed, 31 Mar 2021 21:21:28 +0000 (14:21 -0700)
commit36ac7911fae7575b8cebf9326a23901cba28c015
tree976530b537f672b800167163949c12433d01af6a
parent805f980bfe0e7d07cd4cd5d1183722f0355c0f4a
ice: correct memory allocation call

Use *malloc() instead of *calloc() when allocating only a single object as
opposed to an array of objects.

Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Tested-by: Tony Brelinski <tonyx.brelinski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_switch.c