]> git.droids-corp.org - dpdk.git/blobdiff - app/test/test_link_bonding.c
remove unneeded tests for NULL when freeing
[dpdk.git] / app / test / test_link_bonding.c
index 2d989586b2e7875c9283b15cb7daffc8e9b2a365..7cbc289140e36f42813a2c09cd65336f53207cc1 100644 (file)
@@ -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();