From: Qi Zhang Date: Fri, 18 Sep 2020 05:21:48 +0000 (+0800) Subject: net/ice/base: use malloc instead of calloc X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=323e51eb25d4fa9c3a980df019ed446b3be8bce4;p=dpdk.git 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 Signed-off-by: Qi Zhang Acked-by: Qiming Yang --- diff --git a/drivers/net/ice/base/ice_switch.c b/drivers/net/ice/base/ice_switch.c index cd78685735..dc55d7e3ce 100644 --- a/drivers/net/ice/base/ice_switch.c +++ b/drivers/net/ice/base/ice_switch.c @@ -3366,8 +3366,7 @@ ice_create_vsi_list_map(struct ice_hw *hw, u16 *vsi_handle_arr, u16 num_vsi, struct ice_vsi_list_map_info *v_map; int i; - v_map = (struct ice_vsi_list_map_info *)ice_calloc(hw, 1, - sizeof(*v_map)); + v_map = (struct ice_vsi_list_map_info *)ice_malloc(hw, sizeof(*v_map)); if (!v_map) return NULL;