From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 14FC4A04B5; Tue, 27 Oct 2020 15:13:32 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id ED7604C91; Tue, 27 Oct 2020 15:13:30 +0100 (CET) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 9FA204C87 for ; Tue, 27 Oct 2020 15:13:28 +0100 (CET) IronPort-SDR: /Lbs1gCOb3x611Kn0QErjZiOlbYMeakQpEbg1I5T9xggFYIvqyp8gVZGrp0JQ3UB45BiPHq9la GA56Gv4eKcIw== X-IronPort-AV: E=McAfee;i="6000,8403,9786"; a="229723736" X-IronPort-AV: E=Sophos;i="5.77,424,1596524400"; d="scan'208";a="229723736" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Oct 2020 07:13:26 -0700 IronPort-SDR: L49/t97pZBTX2bpTVKWhOy0fzU1RfBqe+ATMvcd7LP078c82fn5lUPOqgCbwVuPDHjKLXZxyTc JMHJT6U+i+Ag== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,424,1596524400"; d="scan'208";a="360755966" Received: from orsmsx606.amr.corp.intel.com ([10.22.229.19]) by FMSMGA003.fm.intel.com with ESMTP; 27 Oct 2020 07:13:26 -0700 Received: from orsmsx612.amr.corp.intel.com (10.22.229.25) by ORSMSX606.amr.corp.intel.com (10.22.229.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 27 Oct 2020 07:13:25 -0700 Received: from orsmsx601.amr.corp.intel.com (10.22.229.14) by ORSMSX612.amr.corp.intel.com (10.22.229.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 27 Oct 2020 07:13:25 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5 via Frontend Transport; Tue, 27 Oct 2020 07:13:25 -0700 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.171) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.1713.5; Tue, 27 Oct 2020 07:13:23 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ljFeTPV74zqxj9t2dXyJrrZ0BgdFB4ea3dCZ15mWAU8dCxESvH2uVsnnXkcSwu/F3S6rF52o3iLii/1Ubz9A2rIgpSVt7fpFE87P3nuM03cSialoCZqvoelGXIr7BkGzbz7cfcY+1Znu3+Yx7eDYbyUNU4yHOo7G3az+7PsIfubzL2/i0qR95Rcq/uV44ywj8h0zyJaukoKwncphgpMmYChS+/zR3UqfCbGfaQ9EMTYc2Smf6tsv8RZ00zOkr8gbF4K220Jqhghn5g6Ckj3hsiSfPFfA5STM2l7ElQxtjk5TaVazmC6h1MPEgD31tCrgHcJwUfOBEOf0SPYMu4l5bA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tyUrDfnNQ9t8yhzX6/JIQVbQs6NSDeDg1sZOkUdqSsQ=; b=G+lqvE6LPj8KXdm3thLJxe0XXas5dyXyYeMJb9DPt1X1KnHColDL3/0FaVSHOU61Fix0anOy+xsR8srLoL+WJL+gGRkFNgkQ9O1SD2olQuehVJP4VqtL6C4ZlA4+yFhMw2amURvqo7hqFHveXU4lq+kL53/+GWJIKPD3HIIRsyhMG45J3Anu45pNvqdZgl/5sNPUKd2A/3WWhSsdfjSnyg4c7zbq9KZlTOuqr1m24BWmpxQ3I2pEr8ecD0/0Or5rRgLcTSg9i+QDxE2oRfwrdFhR/ldD5lWmJVq+rbtT1Q06DEvk1mGnvMnySwcu9ADGqubA6C3P0WdX7IhbEpEK3A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tyUrDfnNQ9t8yhzX6/JIQVbQs6NSDeDg1sZOkUdqSsQ=; b=AjcmRzUIPHF9ZCWMEeICRvwJq9kXZzzDFWONAqspr7Fi6y/WozDUVDEWVK7Jc0p06NU41ZQkaW8ZSClkE1zbQiHsqW/OWmASDozRk7MmHuKCEfjZTWkh/mISdXcO2ZDu12F9YusEIrNNjGZjLYZ3W+RmklnClB7UiDUcnK5avIk= Received: from BYAPR11MB3301.namprd11.prod.outlook.com (2603:10b6:a03:7f::26) by SJ0PR11MB5039.namprd11.prod.outlook.com (2603:10b6:a03:2da::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3499.18; Tue, 27 Oct 2020 14:13:23 +0000 Received: from BYAPR11MB3301.namprd11.prod.outlook.com ([fe80::f5a4:3f6b:ade3:296b]) by BYAPR11MB3301.namprd11.prod.outlook.com ([fe80::f5a4:3f6b:ade3:296b%3]) with mapi id 15.20.3499.018; Tue, 27 Oct 2020 14:13:23 +0000 From: "Ananyev, Konstantin" To: Honnappa Nagarahalli , "dev@dpdk.org" , "stephen@networkplumber.org" CC: "dharmik.thakkar@arm.com" , "ruifeng.wang@arm.com" , "olivier.matz@6wind.com" , "david.marchand@redhat.com" , "nd@arm.com" Thread-Topic: [PATCH v5 7/8] test/ring: remove unnecessary braces Thread-Index: AQHWqpIvULjqJBjyzk6tZO1JdL6RBqmrgW9Q Date: Tue, 27 Oct 2020 14:13:22 +0000 Message-ID: References: <20200224203931.21256-1-honnappa.nagarahalli@arm.com> <20201025054556.14277-1-honnappa.nagarahalli@arm.com> <20201025054556.14277-8-honnappa.nagarahalli@arm.com> In-Reply-To: <20201025054556.14277-8-honnappa.nagarahalli@arm.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.5.1.3 authentication-results: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [46.7.39.127] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 3da486aa-4803-493d-8c4c-08d87a8276cc x-ms-traffictypediagnostic: SJ0PR11MB5039: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:431; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: eeXvovQPSkBYImpd7n2dLkTJsigrseMwLiUsayhVfr5hX68mbuVk1XXS3JTPNWzV6g+n0ooMe5pfiWeqBAFjgVdJUn3AHFajqDtPCQXI8oLohjNNjbzTjYipzQpFl+4pcQjh1Yn3C6Tx5MWqMLKNrjhn/xwgB/nUo331+dEQu3CKfp83O85gm+E+JcwnHVR9Wh0di0vlcst8o/Nm/17VW/NzLSPtKMsoGMWd3Za7XEu7UP12ySCq1YwTYoe+0bhIVfvXPWH+W0wC8GEcm1TaJLXQWKgPZDsTXw4zKjCZ/VERT9PIBiZKvadIZMA5xBDli1iZiiZg/aI5DQtRpA6RUg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR11MB3301.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(366004)(136003)(39860400002)(376002)(346002)(5660300002)(2906002)(76116006)(9686003)(8676002)(66476007)(26005)(8936002)(66946007)(66556008)(186003)(6506007)(64756008)(66446008)(83380400001)(7696005)(4326008)(71200400001)(52536014)(110136005)(86362001)(478600001)(54906003)(33656002)(316002)(55016002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: VhuGwptUXiWlCOF0WcwgF0q8lJ5HbfwAxAUfuHVqoa/leJMRex5ik4fpFwmVnQKBK/Giq17Cic+6ebM7eejHZPNJDDW3mxZVxhPwRYkLjT7T4Av0K4uLUEueJohb60qUmNEcfSel7kq613uzcpog1gkXBWerd61w2EcXey9+CBmZ1pcgDtJ3ZTAqgOn7VUj/2vLZpEwk+5ikTOZatEDySxQwULmis9/ES3P1XfiXNxMBQeua/qxPRLf30jppe4Eic5EtYCOWOdj9EdD0VnaS+YT/2yiQZ4m/4IM0YkDebNZy4N7FhlN1KitvAqLX4Xkh6wpYJP/dIRFVTf1z1qKwPpnNpSdj9+bJfnhv2AfwN0Xoi++bHI3Tm+q+7abUr6qCYe79TZxpsHIihmoJ/il2eJNhWRkwiu2YHBVGUm1rDX+tx/aglPVP8uk3XfafmflJ6fgFqvjhmLF+kCZlMHf4lsO91GMPBzheRMyivR4WB2ZFH1WX0zgVAjteiFIplpZTt8vlsqk5sJ7Wz7+W03h/IRdMx38xviXJK0dxXAuPFOB1YCEWc2HEr4cXkLRrdDpxNfGPSdrE1NswFPyJpwcNqcE9nSVNxJKFYnpEt1ISyGevAnO50ZFg8j7M3YkJYV2cHrhInkmxoNkK5XUWU81DJg== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BYAPR11MB3301.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3da486aa-4803-493d-8c4c-08d87a8276cc X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Oct 2020 14:13:22.9079 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: AUJ58mdeJ5zBn5AbifNLM6m7DrvkX2D2yALnx1Q9EvTczq/y+fEA9s0vEVj46fxvUPUziTYDJXOvS5+LQLpE7jKbV5zDc6g5ddLyWFV4nfY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR11MB5039 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v5 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. >=20 > Signed-off-by: Honnappa Nagarahalli > --- > app/test/test_ring.h | 12 ++++++------ > 1 file changed, 6 insertions(+), 6 deletions(-) >=20 > 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, unsigne= d int count, > int socket_id, unsigned int flags) > { > /* Legacy queue APIs? */ > - if ((esize) =3D=3D -1) > - return rte_ring_create((name), (count), (socket_id), (flags)); > + if (esize =3D=3D -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); > } >=20 > 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) =3D=3D -1) > + if (esize =3D=3D -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) =3D=3D -1) > + if (esize =3D=3D -1) > switch (api_type) { > case (TEST_RING_THREAD_DEF | TEST_RING_ELEM_SINGLE): > return rte_ring_dequeue(r, obj); > -- Acked-by: Konstantin Ananyev > 2.17.1