From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joe Perches Subject: Re: [PATCH] net/pasemi: Fix missing coding style Date: Sun, 24 Feb 2013 18:11:09 -0800 Message-ID: <1361758269.2281.14.camel@joe-AO722> References: <1361746879-29261-1-git-send-email-s.syam@samsung.com> <20130224.201301.457851300548359313.davem@davemloft.net> <1361755409.2281.9.camel@joe-AO722> <20130224.205216.341922963875740910.davem@davemloft.net> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Cc: syamsidhardh@gmail.com, netdev@vger.kernel.org, olof@lixom.net To: David Miller Return-path: Received: from perches-mx.perches.com ([206.117.179.246]:53658 "EHLO labridge.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1759484Ab3BYCLK (ORCPT ); Sun, 24 Feb 2013 21:11:10 -0500 In-Reply-To: <20130224.205216.341922963875740910.davem@davemloft.net> Sender: netdev-owner@vger.kernel.org List-ID: On Sun, 2013-02-24 at 20:52 -0500, David Miller wrote: > From: Joe Perches > Date: Sun, 24 Feb 2013 17:23:29 -0800 > > > On Sun, 2013-02-24 at 20:13 -0500, David Miller wrote: > >> From: Syam Sidhardhan > >> Date: Mon, 25 Feb 2013 04:31:19 +0530 > >> > >> > - } else > >> > + } else { > >> > freed = 2; > >> > + } > >> > >> Single line statements do not need braces. > > > > I guess you didn't see the preceding block with braces. > > > > CodingStyle: > > > > This does not apply if only one branch of a conditional statement is a single > > statement; in the latter case use braces in both branches: > > I did, and I don't think it's necessary in this case regardless > of what CodingStyle says, do you really honestly think it increases > readability enough to justify those two wasted vertical lines of > screen space? > One additional line not two. You've mentioned it yourself in the past as something you seem to prefer. http://markmail.org/message/go7z57ztnl2nivpz#query:+page:1+mid:tgpy4tricd5yqktp+state:results and I don't much care except for consistency's sake.