Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751802AbdG1MYF (ORCPT ); Fri, 28 Jul 2017 08:24:05 -0400 Received: from smtprelay0008.hostedemail.com ([216.40.44.8]:42441 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751628AbdG1MYE (ORCPT ); Fri, 28 Jul 2017 08:24:04 -0400 X-Session-Marker: 726F737465647440676F6F646D69732E6F7267 X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,rostedt@goodmis.org,:::::::::::::::::::::,RULES_HIT:41:355:379:541:599:800:960:966:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2196:2199:2393:2553:2559:2562:3138:3139:3140:3141:3142:3353:3622:3865:3866:3867:3868:3870:3871:3872:3873:3874:4321:4385:5007:6119:6261:7514:7875:7904:10004:10400:10471:10848:10967:11026:11232:11473:11658:11914:12043:12438:12555:12663:12740:12760:12895:12986:13069:13149:13161:13229:13230:13255:13311:13357:13439:14040:14096:14097:14181:14659:14721:21080:21121:21451:21627:30012:30030:30054:30055:30090:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:3,LUA_SUMMARY:none X-HE-Tag: cup08_5d66dd46f6304 X-Filterd-Recvd-Size: 2688 Date: Fri, 28 Jul 2017 08:23:59 -0400 From: Steven Rostedt To: janani-sankarababu Cc: mingo@kernel.org, akpm@linux-foundation.org, keescook@chromium.org, jeyu@redhat.com, tglx@linutronix.de, viresh.kumar@linaro.org, tj@kernel.org, prarit@redhat.com, lokeshvutla@ti.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] init:main.c: Fixed issues in Block comments and removed braces in single statement if block Message-ID: <20170728082359.6d779550@vmware.local.home> In-Reply-To: <1501222053-24332-1-git-send-email-jananis37@gmail.com> References: <1501222053-24332-1-git-send-email-jananis37@gmail.com> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1604 Lines: 51 On Fri, 28 Jul 2017 11:37:33 +0530 janani-sankarababu wrote: > Signed-off-by: Janani S > > --- > init/main.c | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) > > diff --git a/init/main.c b/init/main.c > index 052481f..f8eb4966 100644 > --- a/init/main.c > +++ b/init/main.c > @@ -181,7 +181,8 @@ static bool __init obsolete_checksetup(char *line) > /* Already done in parse_early_param? > * (Needs exact match on param part). > * Keep iterating, as we can have early > - * params and __setups of same names 8( */ > + * params and __setups of same names Why did you get rid of the "8(" part? Yeah, it's a kind of an old fashion emoji, but it helps make the code stand out as something that we can improve on in the future. > + */ > if (line[n] == '\0' || line[n] == '=') > had_early_param = true; > } else if (!p->setup_func) { > @@ -693,9 +694,9 @@ asmlinkage __visible void __init start_kernel(void) > arch_post_acpi_subsys_init(); > sfi_init_late(); > > - if (efi_enabled(EFI_RUNTIME_SERVICES)) { > + if (efi_enabled(EFI_RUNTIME_SERVICES)) > efi_free_boot_services(); > - } > + Honestly, I'm not too thrilled with these patches. It causes churn to the code history with very little benefit. Usually these types of clean ups are done when the code is modified for functional reasons. Brackets for single instruction blocks isn't needed. But it's not something we should go out of our way to "fix". -- Steve > > /* Do the rest non-__init'ed, we're now alive */ > rest_init();