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
remove unneeded tests for NULL when freeing
[dpdk.git]
/
app
/
test
/
test_link_bonding.c
diff --git
a/app/test/test_link_bonding.c
b/app/test/test_link_bonding.c
index
2d98958
..
7cbc289
100644
(file)
--- a/
app/test/test_link_bonding.c
+++ b/
app/test/test_link_bonding.c
@@
-4023,10
+4023,8
@@
test_close_bonded_device(void)
static void
testsuite_teardown(void)
{
static void
testsuite_teardown(void)
{
- if (test_params->pkt_eth_hdr != NULL) {
- free(test_params->pkt_eth_hdr);
- test_params->pkt_eth_hdr = NULL;
- }
+ free(test_params->pkt_eth_hdr);
+ test_params->pkt_eth_hdr = NULL;
/* Clean up and remove slaves from bonded device */
remove_slaves_and_stop_bonded_device();
/* Clean up and remove slaves from bonded device */
remove_slaves_and_stop_bonded_device();