Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753033AbbHCMSX (ORCPT ); Mon, 3 Aug 2015 08:18:23 -0400 Received: from smtprelay0119.hostedemail.com ([216.40.44.119]:49232 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752347AbbHCMSW (ORCPT ); Mon, 3 Aug 2015 08:18:22 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::::::,RULES_HIT:41:355:379:541:599:800:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1540:1593:1594:1711:1730:1747:1777:1792:2393:2553:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3866:3870:3873:4321:5007:6261:6742:7576:7901:7903:10004:10400:10848:11232:11658:11914:12517:12519:12555:12663:12740:13069:13255:13311:13357:21080,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0 X-HE-Tag: sugar43_2b7f7407cb741 X-Filterd-Recvd-Size: 2289 Message-ID: <1438604297.30149.29.camel@perches.com> Subject: Re: [PATCH] Staging: rts5208: Fix code indentation warning as detected by checkpatch.pl From: Joe Perches To: Dan Carpenter Cc: "devel@driverdev.osuosl.org" , "tinajohnson.1234@gmail.com" , "gregkh@linuxfoundation.org" , "lambert.quentin@gmail.com" , "linux-kernel@vger.kernel.org" , "fabio.falzoi84@gmail.com" , "roxanagabriela10@gmail.com" , "vatikaharlalka@gmail.com" , "Shah, Yash (Y.)" , "contact@timothyleung.co" Date: Mon, 03 Aug 2015 05:18:17 -0700 In-Reply-To: <20150803120945.GX5180@mwanda> References: <20150803111826.GA5293@ubuntu> <20150803113357.GW5180@mwanda> <1438602100.30149.20.camel@perches.com> <20150803120945.GX5180@mwanda> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.16.0-fta1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1088 Lines: 30 On Mon, 2015-08-03 at 15:09 +0300, Dan Carpenter wrote: > On Mon, Aug 03, 2015 at 04:41:40AM -0700, Joe Perches wrote: > > On Mon, 2015-08-03 at 14:33 +0300, Dan Carpenter wrote: > > > On Mon, Aug 03, 2015 at 11:18:31AM +0000, Shah, Yash (Y.) wrote: > > > > From: Yash Shah > > > > > > > > Fixed code indentation warning as detected by checkpatch.pl. > > > > > > > > Signed-off-by: Yash Shah > > > > > > Defines aren't allowed in .c files anyway. > > > > The kernel source tree disagrees with you > > > > $ git grep "^\s*#\s*define\b" -- "*.c" | wc -l > > 175830 > > Duh. Sorry. I meant ifdefs. I'm sure you can find lots of examples > of those too, Yeah, no worries, only about 30k of those. > but this code would be cleaner without the ifdefs. Very true. Removing these would be good. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/