git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net/ice/base: return error directly
[dpdk.git]
/
drivers
/
net
/
ice
/
base
/
ice_switch.c
diff --git
a/drivers/net/ice/base/ice_switch.c
b/drivers/net/ice/base/ice_switch.c
index
cd78685
..
dc55d7e
100644
(file)
--- 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;