From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] testpmd: Simplify logic in error branch Date: Thu, 19 Jun 2014 01:06:59 +0200 Message-ID: <2992380.R7eycFGcZK@xps13> References: <1403030472-25060-1-git-send-email-bruce.richardson@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev-VfR2kkLFssw@public.gmane.org To: Bruce Richardson Return-path: In-Reply-To: <1403030472-25060-1-git-send-email-bruce.richardson-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" > Simplifiy the logic in the error checking branch. Rather than having a > single error branch which checked both RX and TX conditions and made > extensive use of the ? operator, move the error checking explicitly into > the RX and TX individual branches. > > The original code caused compilation issues when attempting compilation > with clang on BSD, due to type mismatches. This change fixes the issues > while making the code easier to read and maintain overall. > > Signed-off-by: Bruce Richardson Acked-by: Thomas Monjalon Applied for version 1.7.0. Thanks -- Thomas