From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v3] examples/qos_sched: fix negative loop bound Date: Mon, 16 May 2016 18:02:44 +0200 Message-ID: <7265971.uXMpWF0bc8@xps13> References: <1461244093-2008-1-git-send-email-michalx.k.jastrzebski@intel.com> <3EB4FA525960D640B5BDFFD6A3D89126479A6EC9@IRSMSX108.ger.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, "Dumitrescu, Cristian" , "Jastrzebski, MichalX K" , "Zhang, Roy Fan" , "Singh, Jasvinder" To: "Mrozowicz, SlawomirX" Return-path: Received: from mail-wm0-f45.google.com (mail-wm0-f45.google.com [74.125.82.45]) by dpdk.org (Postfix) with ESMTP id 5D2475AA9 for ; Mon, 16 May 2016 18:02:46 +0200 (CEST) Received: by mail-wm0-f45.google.com with SMTP id a17so143689422wme.0 for ; Mon, 16 May 2016 09:02:46 -0700 (PDT) In-Reply-To: <3EB4FA525960D640B5BDFFD6A3D89126479A6EC9@IRSMSX108.ger.corp.intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > > Fix issue reported by Coverity. > > > > Coverity ID 30704: Negative loop bound > > negative_returns: Using unsigned variable n_tokens in a loop exit condition. > > > > Fixes: de3cfa2c9823 ("sched: initial import") > > > > Signed-off-by: Slawomir Mrozowicz > > Acked-by: Cristian Dumitrescu There is no explanation but as it is acked and not so important, Applied