From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: [PATCH] net/i40e: remove redundant statement and braces Date: Mon, 9 Jan 2017 13:30:50 +0000 Message-ID: <099e06c8-1fa3-3684-a36c-e4b86f5c6912@intel.com> References: <1483969732-20073-1-git-send-email-wang.yong19@zte.com.cn> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org To: Yong Wang , helin.zhang@intel.com, jingjing.wu@intel.com Return-path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 9B0922C58 for ; Mon, 9 Jan 2017 14:30:53 +0100 (CET) In-Reply-To: <1483969732-20073-1-git-send-email-wang.yong19@zte.com.cn> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 1/9/2017 1:48 PM, Yong Wang wrote: > In function "reassemble_packets()", the statement "end = secondlast;" > is redundant since there is another assignment "start = end = NULL;" > 3 lines below. BTW, I removed the redundant braces in the conditional > statement "if (end->data_len > rxq->crc_len)". > > Signed-off-by: Yong Wang Acked-by: Ferruh Yigit