From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753197Ab0ELBx5 (ORCPT ); Tue, 11 May 2010 21:53:57 -0400 Received: from mail.perches.com ([173.55.12.10]:2186 "EHLO mail.perches.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752102Ab0ELBx4 (ORCPT ); Tue, 11 May 2010 21:53:56 -0400 Subject: Re: [trivial PATCH] arch/x86: Remove unnecessary returns from void function()'s From: Joe Perches To: "H. Peter Anvin" Cc: Thomas Gleixner , Ingo Molnar , x86@kernel.org, LKML , Jiri Kosina In-Reply-To: <1273626052.20514.319.camel@Joe-Laptop.home> References: <1273624747.20514.316.camel@Joe-Laptop.home> <4BE9F94A.9000907@zytor.com> <1273626052.20514.319.camel@Joe-Laptop.home> Content-Type: text/plain; charset="UTF-8" Date: Tue, 11 May 2010 18:53:54 -0700 Message-ID: <1273629234.20514.333.camel@Joe-Laptop.home> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2010-05-11 at 18:00 -0700, Joe Perches wrote: > On Tue, 2010-05-11 at 17:41 -0700, H. Peter Anvin wrote: > > On 05/11/2010 05:39 PM, Joe Perches wrote: > > > This patch removes from arch/x86/ all the unnecessary > > > return; statements that precede the last closing brace of > > > void functions. > > And the point of this is? > > I fail to see how this improves the clarity of the code one iota, and > > isn't anything but just churn. > Most all kernel void functions don't use return before > the closing brace. Just a stat from arch/x86: There may be a little over 2000 void functions in arch/x86/, 40 use returns before the trailing brace. Call it churn or consistency, . cheers, Joe