[dpdk-dev,v2,1/2] test/memzone: Fix test_memzone_basic issue
Checks
Commit Message
No need to free a NULL memzone. It will cause test
termination.
Signed-off-by: Phil Yang <phil.yang@arm.com>
---
test/test/test_memzone.c | 4 ----
1 file changed, 4 deletions(-)
Comments
On 15-Jan-18 5:52 AM, Phil Yang wrote:
> No need to free a NULL memzone. It will cause test
> termination.
>
> Signed-off-by: Phil Yang <phil.yang@arm.com>
> ---
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
@@ -251,10 +251,6 @@ test_memzone_reserve_flags(void)
printf("MEMZONE FLAG 2MB\n");
return -1;
}
- if (rte_memzone_free(mz)) {
- printf("Fail memzone free\n");
- return -1;
- }
}
if (hugepage_2MB_avail && hugepage_1GB_avail) {