X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=app%2Ftest%2Ftest_link_bonding.c;h=7cbc289140e36f42813a2c09cd65336f53207cc1;hb=c7985de0a7f0769d6e4e112b18314aceecf2642c;hp=2d989586b2e7875c9283b15cb7daffc8e9b2a365;hpb=5ce3ace1de458e2ded1b408acfe59c15cf9863f1;p=dpdk.git diff --git a/app/test/test_link_bonding.c b/app/test/test_link_bonding.c index 2d989586b2..7cbc289140 100644 --- 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) { - 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();