From patchwork Sat Oct 24 16:11:11 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Honnappa Nagarahalli X-Patchwork-Id: 318949 Delivered-To: patch@linaro.org Received: by 2002:a92:d1d1:0:0:0:0:0 with SMTP id u17csp1344207ilg; Sat, 24 Oct 2020 09:13:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyRxgzT5JkUTTbDoQE7j5jRE2cTdLc5d8UzKd7NBfSOse9cMlj9xdSYGkGwWSjxoFQ19qpi X-Received: by 2002:a17:906:a1d8:: with SMTP id bx24mr7238832ejb.161.1603556035645; Sat, 24 Oct 2020 09:13:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603556035; cv=none; d=google.com; s=arc-20160816; b=r+WPROalpGwk3bDIuSjuVU6rXhdF+AnfibTyd9TiF/M52fWKfvK8gqnqRBEmNBkz2U skte5RaQwCC16+u0UJPE5lcPROvQgqlStcsKhEogbgfGI/Ft4jHsQamgmuCU9waw4/2g Vljh6RyZhQi92kvbpzgKe8qp173gJf1AAEYW6BwK1LCveg/xW/5T5MUQnLnIT2EIawx8 6F7BKFZqlLpgX2PkJu4SIczAIJfztQLnebDBh1ADdG7Ip93m+/eRNdHx8J9W+RPhTFWn Hcgg8gLWfqZialNpOt8b0YnlTgVGnhaabvaCt3ggQ4yOlDTM40GCe/W4nW5uqwwT4OTX WnCw== 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:references:in-reply-to :message-id:date:cc:to:from; bh=TPbivzCUEjLa5iLw/D6gbOFDY47NUnGhUiLms7lWHF8=; b=gpMoOseVMVLYoLCKPE5R7egRtL8IILGUlXgRbaishZBNhlTRKpZiRA1rKuKSmSCimL m0x/ubGNr+bfrxV6W/mKZY9XxTk/oAclVVTUK5w8mPU9ZOnHGMAPadjZO3jj6mTEnnmZ mz8FWawDJfgMg9OEGe8FfF+tDMcQ9lV6DR5dA4j41vslK2pjf1fbK9hG2gGIEBklrtIk y8M13DKpIoMOAkbFNDhCYFogaELWDn+LmVskJFTWJE6rQ381ytDGJnnRJf5gN9LHLXse 3KUcjC/CKJJgOffkG7DJdxKuQd/5bX10sBd00WhNN0tWcR940vcRcVUTZaPfL0qM1bMR AWCQ== 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 w10si4168408ejv.268.2020.10.24.09.13.54; Sat, 24 Oct 2020 09:13:55 -0700 (PDT) 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 1508C569B; Sat, 24 Oct 2020 18:11:39 +0200 (CEST) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by dpdk.org (Postfix) with ESMTP id B68DC2DCC for ; Sat, 24 Oct 2020 18:11:29 +0200 (CEST) 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 2ED20142F; Sat, 24 Oct 2020 09:11:28 -0700 (PDT) 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 1D3D43F66B; Sat, 24 Oct 2020 09:11:28 -0700 (PDT) From: Honnappa Nagarahalli To: dev@dpdk.org, honnappa.nagarahalli@arm.com, konstantin.ananyev@intel.com, stephen@networkplumber.org Cc: dharmik.thakkar@arm.com, ruifeng.wang@arm.com, olivier.matz@6wind.com, david.marchand@redhat.com, nd@arm.com Date: Sat, 24 Oct 2020 11:11:11 -0500 Message-Id: <20201024161112.13730-8-honnappa.nagarahalli@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201024161112.13730-1-honnappa.nagarahalli@arm.com> References: <20200224203931.21256-1-honnappa.nagarahalli@arm.com> <20201024161112.13730-1-honnappa.nagarahalli@arm.com> Subject: [dpdk-dev] [PATCH v4 7/8] test/ring: remove unnecessary braces 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 unnecessary braces to improve readability. Signed-off-by: Honnappa Nagarahalli --- app/test/test_ring.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) -- 2.17.1 diff --git a/app/test/test_ring.h b/app/test/test_ring.h index b525abb79..c8bfec839 100644 --- a/app/test/test_ring.h +++ b/app/test/test_ring.h @@ -35,11 +35,11 @@ test_ring_create(const char *name, int esize, unsigned int count, int socket_id, unsigned int flags) { /* Legacy queue APIs? */ - if ((esize) == -1) - return rte_ring_create((name), (count), (socket_id), (flags)); + if (esize == -1) + return rte_ring_create(name, count, socket_id, flags); else - return rte_ring_create_elem((name), (esize), (count), - (socket_id), (flags)); + return rte_ring_create_elem(name, esize, count, + socket_id, flags); } static inline void* @@ -102,7 +102,7 @@ test_ring_enqueue(struct rte_ring *r, void **obj, int esize, unsigned int n, unsigned int api_type) { /* Legacy queue APIs? */ - if ((esize) == -1) + if (esize == -1) switch (api_type) { case (TEST_RING_THREAD_DEF | TEST_RING_ELEM_SINGLE): return rte_ring_enqueue(r, *obj); @@ -163,7 +163,7 @@ test_ring_dequeue(struct rte_ring *r, void **obj, int esize, unsigned int n, unsigned int api_type) { /* Legacy queue APIs? */ - if ((esize) == -1) + if (esize == -1) switch (api_type) { case (TEST_RING_THREAD_DEF | TEST_RING_ELEM_SINGLE): return rte_ring_dequeue(r, obj);