From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3BD5242B48; Fri, 19 May 2023 13:07:24 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0F8734161A; Fri, 19 May 2023 13:07:24 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 3164641148 for ; Fri, 19 May 2023 13:07:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1684494442; x=1716030442; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=vWzZmTFaX4mk11XsE048vy0nOz93CZjoHIKgD81izeM=; b=g6Z4+9PIhcR2ssA4ZPd6MfbYU+7ZPFj+jTDStGiNBRpZx75O2mwyB7Jl 7ut2il41HtIBd1ERNhZwKRom1DXz4qc3xYJtRdEcNeSds9JJI+LOaKQRO Z8KxeOztRufMJSSbSYapeHywEFYJjDDmJC4K9hax2x1svbTFvWPtZ0Qup b+eugN8tegNjSs33Dp5qHI42Du9ochkr0S6DE3BU31sVnUhXg7ASWKPM+ D43zZhQfeNxRy12wAOkMAfi6rUSqUP0m8kQztgs+LKhNP14AcbCw0Vv7h ZO+g1gcHoNv3UOEJdljPnnDGgvuCgpsfSJf76QC6eQJ/h7NxHddHarn4z A==; X-IronPort-AV: E=McAfee;i="6600,9927,10714"; a="332710035" X-IronPort-AV: E=Sophos;i="6.00,176,1681196400"; d="scan'208";a="332710035" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 May 2023 04:06:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10714"; a="705581002" X-IronPort-AV: E=Sophos;i="6.00,176,1681196400"; d="scan'208";a="705581002" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by fmsmga007.fm.intel.com with ESMTP; 19 May 2023 04:06:31 -0700 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Fri, 19 May 2023 04:06:30 -0700 Received: from orsmsx602.amr.corp.intel.com (10.22.229.15) by ORSMSX611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Fri, 19 May 2023 04:06:30 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23 via Frontend Transport; Fri, 19 May 2023 04:06:30 -0700 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.171) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.23; Fri, 19 May 2023 04:06:30 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Jzp1dZGlqqwLRC50+QMX6kcruWwGDMd+PWgY2fGnweJbOpEZGjZ0K7SsNQtJG0D8x8mjPCHtpSua3N6XyTcC9R74Id3+jixlM7/EJ1FybaenYK/AugqUOqFPTelK1zRo4OmcisdaIhGfBta4/DKvrhAU8DpPNa03wzzZ5fEnnC6Kpz/nt+233r3/LxJNIVSTsU8e1cexrG+piaBNX7cmZ65a2M0cECkFWizkfd829xpRaNUTqi9YG4mlwOgfpx4fOwQuM8fUlR4U1+04cBKHT+KxurQjIOJ2q5GHzjLXLgE2Ma5h4vRxkoLDvfwxeULmzEoTXzG8KzJJHMT2XDrlAQ== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=W56+dQYyX71aAdub9Z9hEO+bWLH+8CrpNdyiX2iwuXQ=; b=B/RD6DcciErx1oYl6uVubAZxsLGxPKKIp365wbgBHO8pKgA8EYk/f1h2aNK6krQWQH8E80i4AlK9y9M292l4s02yFQ7APyQ3nC5VmU9uazMSe7pwHXU+18x3i5EN3cQJNIPhkeFqggDwY+veJniUy2RIzXgxCrIYi96gN6LSuEV4BImbzWN0kKI/yBd+3rnJmJfM2i8d26S1VA8STPgo1Tt6/XC2m6SG1UwP3KIdKP2jn/eztOw3dNQt3KXh/F2jFR8pWGn3uHX9q9a2/CG0vCCmOOjOSOplI6gd2kdvu4Y4I6F1tfNYiAsYdJxIw4lE8a4Z32lqQq+BcT2EYuxCfQ== 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 Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from DM4PR11MB6502.namprd11.prod.outlook.com (2603:10b6:8:89::7) by CH3PR11MB7771.namprd11.prod.outlook.com (2603:10b6:610:125::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6411.21; Fri, 19 May 2023 11:06:29 +0000 Received: from DM4PR11MB6502.namprd11.prod.outlook.com ([fe80::49c0:aa4c:e5b4:e718]) by DM4PR11MB6502.namprd11.prod.outlook.com ([fe80::49c0:aa4c:e5b4:e718%5]) with mapi id 15.20.6411.021; Fri, 19 May 2023 11:06:28 +0000 Message-ID: <0cb22751-26e1-f3e2-20c4-290e2387369f@intel.com> Date: Fri, 19 May 2023 12:06:22 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0 Thunderbird/102.11.0 Subject: Re: [PATCH 2/4] eal: simplify check condition Content-Language: en-US To: Ruifeng Wang CC: , , , References: <20230519042923.314670-1-ruifeng.wang@arm.com> <20230519042923.314670-3-ruifeng.wang@arm.com> From: "Burakov, Anatoly" In-Reply-To: <20230519042923.314670-3-ruifeng.wang@arm.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: DUZPR01CA0269.eurprd01.prod.exchangelabs.com (2603:10a6:10:4b9::18) To DM4PR11MB6502.namprd11.prod.outlook.com (2603:10b6:8:89::7) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM4PR11MB6502:EE_|CH3PR11MB7771:EE_ X-MS-Office365-Filtering-Correlation-Id: e3a645b7-53e0-44be-ccb9-08db585917cf X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: FqzYeIlyjZMVsmFwpJjJJAkpFZ1t2BH9jKjsdRxbdWgtSmQgnVWh1tkDn+kZc7eoYh+iL3ZBzu268ne+EOI3agNO4wbuT5YBo3eiGrFWeom9nnvqKhfZ9HsiT4hmFJrRfM7SdTEQ5t9tF8E7sQ0mjRi1DXRizsIsBlILxm/vW4OExnXFhZkrv5ttVat613sUP5raPMlqu/NnYgZ/z1Mpf2FXj85Mfa16wAlvcUs9ExttHveSqx8squowthonKo+Q5ZrgU6o0hpR1EKoOEfTlIPTJJNywPFWJfnxqIHGozVz6a03kc7rxy3gTkv/A1suHPmw1bCeBjZ+WHQJn1S+EG9rTDXNwJutPQMIHY6DTNBcTFyhTuIm8TFcla7eBEOf8sMWsz8QFBMUwWVN12mffjkbzvZmXYDPVd8iMoUg0eP5mUhFawttDnVYxbCNc7zR9k5JfqdT0CJzqGfcxUSIGygoU8GVW9s6/mabJr/FJDFY7SPbLURSh9P3mrVfeorckxCkIMX1uv4sV0FeWXl1SsTxLfisOBytuOwfQ+tDx9Zgh0nsbvJMxmViTHteDsUAEf2uHS/3bu3qp724vA2VG9L3igPCu3EvVg27vaj/T9L6FetRwdHu9Vl4zr/TAynFCwaGwvts2nrzEUSuHHsHtBA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR11MB6502.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(376002)(346002)(366004)(136003)(39860400002)(396003)(451199021)(31686004)(6512007)(6506007)(2616005)(53546011)(26005)(8676002)(8936002)(4326008)(36756003)(86362001)(31696002)(4744005)(2906002)(478600001)(6916009)(41300700001)(316002)(186003)(5660300002)(66946007)(66556008)(66476007)(6486002)(38100700002)(82960400001)(6666004)(43740500002)(45980500001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?VzZLNDlTN2RFaFhHeUV0R1BlSE5DQjd4TUhrMVlJZHdBaHladTNmUWFFSnhJ?= =?utf-8?B?L09QWURIaU1LVEpNUm81ZFBvNXhTUHE4WnhzU3QyMDVjR0lPTTNBVmh5aFha?= =?utf-8?B?WG8zSVlBYURidm9sQXIrSmI5M2c0TVRlVysybTJRRnJUN2FTMERZV21meW1D?= =?utf-8?B?L1VySHlEMVM1Qmp3akV1Vm1Yd245SGxRM0NBRWlqTGZvQVoySzgxaFVrR0dU?= =?utf-8?B?WjlwTXAvc3VFbGZQVDVGV0dvQlVYOUxrRzMzT0g1RVV6R255Ky9tK0l2RTRt?= =?utf-8?B?SW1FMjFvMHFQVDFSYk05bFVOSUZIT2drelRPK1NvNm9jd0lkQnFjOWRjd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GJCVmo2VTBnRTU1MjhZS0ROSEdNeXpJ?= =?utf-8?B?d1E9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: e3a645b7-53e0-44be-ccb9-08db585917cf X-MS-Exchange-CrossTenant-AuthSource: DM4PR11MB6502.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 May 2023 11:06:28.1690 (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: NrphToFMLWb1bgMPVPnpApiSkHEsDi+eKZkR5WCU49PVOliFniH8hJ9MCD2dFJ1IwI5PyJY3c3Z0zRNErI0bRTvz1OFUyXO2ALsGVE2iXAI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR11MB7771 X-OriginatorOrg: intel.com 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 On 5/19/2023 5:29 AM, Ruifeng Wang wrote: > The alt_elem is initialized to null. Checking only size hint flag is > sufficient to return a proper value. > Removed the redundant check. > > Signed-off-by: Ruifeng Wang > Reviewed-by: Feifei Wang > --- Acked-by: Anatoly Burakov -- Thanks, Anatoly