From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Marek Lindner Date: Fri, 24 Aug 2012 23:59:20 +0200 References: <1345451209-8898-1-git-send-email-sven@narfation.org> In-Reply-To: <1345451209-8898-1-git-send-email-sven@narfation.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201208242359.21231.lindner_marek@yahoo.de> Subject: Re: [B.A.T.M.A.N.] [PATCH 1/3] batman-adv: Remove extra check in batadv_bit_get_packet Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: b.a.t.m.a.n@lists.open-mesh.org On Monday, August 20, 2012 10:26:47 Sven Eckelmann wrote: > batadv_bit_get_packet checks for all common situations before it decides > that the new received packet indicates that the host was restarted. This > extra condition check at the end of the function is not necessary because > this condition is always true. > > This patch addresses Coverity #712296: Logically dead code > > Signed-off-by: Sven Eckelmann > --- > bitarray.c | 23 ++++++++++------------- > 1 file changed, 10 insertions(+), 13 deletions(-) Applied in revision d2da57c. Thanks, Marek