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
examples: remove useless null checks before rte_free
[dpdk.git]
/
examples
/
vm_power_manager
/
channel_manager.c
diff --git
a/examples/vm_power_manager/channel_manager.c
b/examples/vm_power_manager/channel_manager.c
index
04344ae
..
7d892e2
100644
(file)
--- a/
examples/vm_power_manager/channel_manager.c
+++ b/
examples/vm_power_manager/channel_manager.c
@@
-800,9
+800,7
@@
channel_manager_exit(void)
rte_free(vm_info);
}
- if (global_cpumaps != NULL)
- rte_free(global_cpumaps);
- if (global_vircpuinfo != NULL)
- rte_free(global_vircpuinfo);
+ rte_free(global_cpumaps);
+ rte_free(global_vircpuinfo);
disconnect_hypervisor();
}