From patchwork Thu Aug 17 04:30:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sinan Kaya X-Patchwork-Id: 130458 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id A60614308A; Thu, 17 Aug 2023 06:30:40 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 94819411F3; Thu, 17 Aug 2023 06:30:40 +0200 (CEST) Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by mails.dpdk.org (Postfix) with ESMTP id F063F40ED8 for ; Thu, 17 Aug 2023 06:30:33 +0200 (CEST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 5EDA96359E for ; Thu, 17 Aug 2023 04:30:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 58FBBC433C8; Thu, 17 Aug 2023 04:30:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692246632; bh=/hMLz26N7Y7WYFEjwSMir6/cOzErURmJXPxoqo0Sn1s=; h=From:To:Cc:Subject:Date:From; b=NeYKP7icPN2pjMFsbZkdg3VsQp7088REoDt35Qk8NMvBLxpaUXcukscmn/av1bh6p l4A2nZUEZqTp8XEyOpdZUPSIF82J5NmIZSJyK9Dl3U+td/BGnQ1L6MqwB4ESGyu7gO llhpFGndDET9KY06AngGe8DuqPtCy/vPDDXJNX40XGVtNpNNi1S2PbZVTiLQRQUrxu PIYfqp0tAGTj3QtiPffsQlPv2D+40TZYtlAZVu7/5r01LYsWl7uyoS247bX/tuXegl XK/HdKWn713Y/oTQWpPqFn9xbqVk4BoCSFBtDGar/0DjYDm5HPUrwtgpAYuKiyH79Q y22CnUg9e9hXg== From: okaya@kernel.org To: Cc: dev@dpdk.org, Sinan Kaya Subject: [PATCH v5 10/10] test: remove double registration check Date: Thu, 17 Aug 2023 00:30:27 -0400 Message-Id: <20230817043027.138473-1-okaya@kernel.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org From: Sinan Kaya Code will fetch the existing registration when called for second time as part of the reinit changes. Registration will still succeed. Signed-off-by: Sinan Kaya --- app/test/test_tailq.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/test/test_tailq.c b/app/test/test_tailq.c index 9520219b0a..fbb483ea86 100644 --- a/app/test/test_tailq.c +++ b/app/test/test_tailq.c @@ -70,11 +70,6 @@ test_tailq_create(void) if (strcmp(rte_dummy_dyn2_tailq.name, rte_dummy_dyn_tailq.name)) do_return("Error, something is wrong in the tailq test\n"); - /* try allocating again, and check for failure */ - if (!rte_eal_tailq_register(&rte_dummy_dyn2_tailq)) - do_return("Error, registering the same tailq %s did not fail\n", - rte_dummy_dyn2_tailq.name); - return 0; }