From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id CD76CDE3 for ; Wed, 4 May 2016 10:04:33 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP; 04 May 2016 01:04:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,575,1455004800"; d="scan'208";a="972225113" Received: from unknown (HELO [10.237.220.98]) ([10.237.220.98]) by fmsmga002.fm.intel.com with ESMTP; 04 May 2016 01:04:32 -0700 To: Mauricio Vasquez B , dev@dpdk.org References: <1461944899-28944-1-git-send-email-mauricio.vasquezbernal@studenti.polito.it> <1462310217-16243-1-git-send-email-mauricio.vasquezbernal@studenti.polito.it> From: Ferruh Yigit Message-ID: <5729AD0F.4060302@intel.com> Date: Wed, 4 May 2016 09:04:31 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: <1462310217-16243-1-git-send-email-mauricio.vasquezbernal@studenti.polito.it> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v2] examples: remove useless checking X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 May 2016 08:04:34 -0000 On 5/3/2016 10:16 PM, Mauricio Vasquez B wrote: > The rte_eth_dev_count() function will never return a value greater > than RTE_MAX_ETHPORTS, so that checking is useless. > > Signed-off-by: Mauricio Vasquez B > --- > v2: > Add missed case in examples/kni/main.c Acked-by: Ferruh Yigit