net/ice/base: use malloc instead of calloc
authorQi Zhang <qi.z.zhang@intel.com>
Fri, 18 Sep 2020 05:21:48 +0000 (13:21 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 3 Nov 2020 22:35:03 +0000 (23:35 +0100)
commit323e51eb25d4fa9c3a980df019ed446b3be8bce4
treedee356a983b6a553451f430317507c2c421e9a6e
parentbd885ab120e2335f978a28ee0aa4303017390e15
net/ice/base: use malloc instead of calloc

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>
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Qiming Yang <qiming.yang@intel.com>
drivers/net/ice/base/ice_switch.c