Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758497AbcDEMqO (ORCPT ); Tue, 5 Apr 2016 08:46:14 -0400 Received: from helcar.hengli.com.au ([209.40.204.226]:35417 "EHLO helcar.hengli.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758357AbcDEMqL (ORCPT ); Tue, 5 Apr 2016 08:46:11 -0400 Date: Tue, 5 Apr 2016 20:46:05 +0800 From: Herbert Xu To: Amitoj Kaur Chawla Cc: davem@davemloft.net, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, julia.lawall@lip6.fr Subject: Re: [PATCH] crypto: n2 - Remove return statement from void function Message-ID: <20160405124605.GE13048@gondor.apana.org.au> References: <20160318133848.GA25643@amitoj-Inspiron-3542> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160318133848.GA25643@amitoj-Inspiron-3542> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 549 Lines: 24 On Fri, Mar 18, 2016 at 07:08:48PM +0530, Amitoj Kaur Chawla wrote: > Return statement at the end of a void function is useless. > > The Coccinelle semantic patch used to make this change is as follows: > // > @@ > identifier f; > expression e; > @@ > void f(...) { > <... > - return > e; > ...> > } > // > > Signed-off-by: Amitoj Kaur Chawla Applied. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt