From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from foss.arm.com (foss.arm.com [217.140.101.70]) by dpdk.org (Postfix) with ESMTP id 18A10A48C for ; Mon, 15 Jan 2018 06:43:45 +0100 (CET) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 5CB3380D; Sun, 14 Jan 2018 21:43:44 -0800 (PST) Received: from phil-VirtualBox.shanghai.arm.com (phil-virtualbox.shanghai.arm.com [10.169.38.30]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 78ABA3F41F; Sun, 14 Jan 2018 21:43:43 -0800 (PST) From: Phil Yang To: dev@dpdk.org Cc: anatoly.burakov@intel.com, jianbo.liu@arm.com, herbert.guan@arm.com, phil.yang@arm.com Date: Mon, 15 Jan 2018 13:43:32 +0800 Message-Id: <1515995013-5748-2-git-send-email-phil.yang@arm.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1515995013-5748-1-git-send-email-phil.yang@arm.com> References: <1515663706-762-1-git-send-email-phil.yang@arm.com> <1515995013-5748-1-git-send-email-phil.yang@arm.com> Subject: [dpdk-dev] [PATCH 1/2] test/memzone: Fix test_memzone_basic issue X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Jan 2018 05:43:45 -0000 No need to free a NULL memzone. It will cause test termination. Signed-off-by: Phil Yang --- test/test/test_memzone.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/test/test/test_memzone.c b/test/test/test_memzone.c index 6e80977..9c20172 100644 --- a/test/test/test_memzone.c +++ b/test/test/test_memzone.c @@ -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) { -- 2.7.4