From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steffen Klassert Subject: Re: [PATCH] esp6: remove redundant initialization of esph Date: Mon, 23 Oct 2017 13:21:07 +0200 Message-ID: <20171023112107.GG3323@secunet.com> References: <20171019130947.30950-1-colin.king@canonical.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Cc: Herbert Xu , "David S . Miller" , Alexey Kuznetsov , "Hideaki YOSHIFUJI" , , , To: Colin King Return-path: Content-Disposition: inline In-Reply-To: <20171019130947.30950-1-colin.king@canonical.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On Thu, Oct 19, 2017 at 03:09:47PM +0200, Colin King wrote: > From: Colin Ian King > > The pointer esph is being initialized with a value that is never > read and then being updated. Remove the redundant initialization > and move the declaration and initializtion of esph to the local > code block. > > Cleans up clang warning: > net/ipv6/esp6.c:562:21: warning: Value stored to 'esph' during its > initialization is never read > > Signed-off-by: Colin Ian King Applied to ipsec-next, thanks!