From patchwork Mon Nov 2 19:56:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Honnappa Nagarahalli X-Patchwork-Id: 320369 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp4006677ilc; Mon, 2 Nov 2020 11:57:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJzrCH2SiW0JkHf78OTb10h6eEUgdVt4eT14uKDWzRWfy48zyCfY2Z6TBNfhxnJW3AZS0LSN X-Received: by 2002:a50:88e5:: with SMTP id d92mr18463662edd.145.1604347040127; Mon, 02 Nov 2020 11:57:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604347040; cv=none; d=google.com; s=arc-20160816; b=lL1N1DjkqbvekWS9+Ld8gpz5ttbLA/RxzMpl9KiEaO8nGFMP794f8RMerxtFH3518w 3E3zzAkZku8ny+PAwILZuh99OvTc11wMCBw/uu+ZlWcjhR0xcjjV0SvQ6fq859A+ZlSB PUdpPWNcRlRl7dqQt/ZjBFBrj0aLDOKZXsZI34th0HQzoFsmVnx7vCZXkePabtMgybOg b3L5sZLvXpV/KhwMEVURH8bzcfGFADtBrMW9GR+uH7HjWtZCav33haM+sjyFLqzOy/FZ HQEH1Y+WywxfJcO2P885qawTFhqccEMOnswqaIhM3KHufsvASw8bDaAhsVbC/RJqQYit zI7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:message-id:date:cc:to :from; bh=e3ZlG40uPU55nrsrYOIeeFkz3O97mQUUe4hq0TUHsXk=; b=j4AKQStgcsk95G+t7t6eWPl56Es+csh7KZu+9uw1taNFCKgHJEGSfMrmxV7xv6F3qn X2s3CmGBNtUuJDr/0HaaMo0HlumkXRSEhzgoFn7HYsIFboY4n2DbYvcNTp9Fdmfqe0hz k3sg1khx73ew1lrzcd5amn8imAuoGhXa1/VS+n2VIeStZmoJ0wAXO6vDM+y9NuYMSyP0 gFqpvLBZGQwCnHCcxHa25sHRT9b3obY5XV+5+CXdipQnz/L3hKecW6v6Ajo8ASFVAS2e Ynqjxd5qhOpMrsfiyXcNMGoYAiji6tQEUr4qa4TVZojnyjgm1gNwzq5W0Htm//n4zW7N NJPw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id i23si4519668edg.60.2020.11.02.11.57.19; Mon, 02 Nov 2020 11:57:20 -0800 (PST) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C0DF323D; Mon, 2 Nov 2020 20:57:14 +0100 (CET) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by dpdk.org (Postfix) with ESMTP id 74D7F2E1E for ; Mon, 2 Nov 2020 20:57:13 +0100 (CET) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id EC59911FB; Mon, 2 Nov 2020 11:57:11 -0800 (PST) Received: from qc2400f-1.austin.arm.com (qc2400f-1.austin.arm.com [10.118.12.27]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id DA4FD3F66E; Mon, 2 Nov 2020 11:57:11 -0800 (PST) From: Honnappa Nagarahalli To: dev@dpdk.org, honnappa.nagarahalli@arm.com, konstantin.ananyev@intel.com Cc: feifei.wang@arm.com, ruifeng.wang@arm.com, nd@arm.com, feifei.wang2@arm.com Date: Mon, 2 Nov 2020 13:56:59 -0600 Message-Id: <20201102195659.27012-1-honnappa.nagarahalli@arm.com> X-Mailer: git-send-email 2.17.1 Subject: [dpdk-dev] [PATCH] test/ring: remove unused code 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Remove unused assignment statement as the assigned variable is not used in the code further. Coverity issue: 363690 Fixes: 6c583103a2d1 ("test/ring: factorize object checks") Cc: feifei.wang2@arm.com Signed-off-by: Honnappa Nagarahalli Reviewed-by: Feifei Wang Reviewed-by: Ruifeng Wang --- app/test/test_ring.c | 3 --- 1 file changed, 3 deletions(-) -- 2.17.1 diff --git a/app/test/test_ring.c b/app/test/test_ring.c index 5b7fdfa45..fb8532a40 100644 --- a/app/test/test_ring.c +++ b/app/test/test_ring.c @@ -725,7 +725,6 @@ test_ring_burst_bulk_tests2(unsigned int test_idx) ret = test_ring_enq_impl(r, cur_src, esize[i], MAX_BULK, test_idx); TEST_RING_VERIFY(ret == MAX_BULK, r, goto fail); - cur_src = test_ring_inc_ptr(cur_src, esize[i], MAX_BULK); printf("dequeue 1 obj\n"); ret = test_ring_deq_impl(r, cur_dst, esize[i], 1, test_idx); @@ -1050,7 +1049,6 @@ test_ring_basic_ex(void) ret = test_ring_enqueue(rp, cur_src, esize[i], 2, TEST_RING_THREAD_DEF | TEST_RING_ELEM_BULK); TEST_RING_VERIFY(ret == 2, rp, goto fail_test); - cur_src = test_ring_inc_ptr(cur_src, esize[i], 2); ret = test_ring_dequeue(rp, cur_dst, esize[i], 2, TEST_RING_THREAD_DEF | TEST_RING_ELEM_BULK); @@ -1157,7 +1155,6 @@ test_ring_with_exact_size(void) ret = test_ring_enqueue(exact_sz_r, cur_src, esize[i], 1, TEST_RING_THREAD_DEF | TEST_RING_ELEM_SINGLE); TEST_RING_VERIFY(ret != -ENOBUFS, exact_sz_r, goto test_fail); - cur_src = test_ring_inc_ptr(cur_src, esize[i], 1); /* check that dequeue returns the expected number of elements */ ret = test_ring_dequeue(exact_sz_r, cur_dst, esize[i], ring_sz,