From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 4A56A2C08 for ; Tue, 3 May 2016 16:40:05 +0200 (CEST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP; 03 May 2016 07:39:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,572,1455004800"; d="scan'208";a="957912511" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.237.221.48]) ([10.237.221.48]) by fmsmga001.fm.intel.com with ESMTP; 03 May 2016 07:39:45 -0700 To: dev@dpdk.org, Mauricio Vasquez B References: <1461944899-28944-1-git-send-email-mauricio.vasquezbernal@studenti.polito.it> From: Ferruh Yigit Message-ID: <5728B831.10804@intel.com> Date: Tue, 3 May 2016 15:39:45 +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: <1461944899-28944-1-git-send-email-mauricio.vasquezbernal@studenti.polito.it> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Subject: Re: [dpdk-dev] [PATCH] 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: Tue, 03 May 2016 14:40:05 -0000 On 4/29/2016 4:48 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 Patch looks good to me. Only there is one missed in examples/kni/main.c, can you please include that one too? Thanks, ferruh