[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <7b78e43a01865ec0c296ad9acad0616a6c2c3b86.camel@perches.com>
Date: Wed, 26 Aug 2020 07:45:24 -0700
From: Joe Perches <joe@...ches.com>
To: Thomas Renninger <trenn@...e.com>,
Jiri Kosina <trivial@...nel.org>, linux-kernel@...r.kernel.org
Cc: Shuah Khan <shuah@...nel.org>, linux-pm@...r.kernel.org,
linux-kselftest@...r.kernel.org
Subject: Re: [PATCH 29/29] tools: Avoid comma separated statements
On Wed, 2020-08-26 at 11:30 +0200, Thomas Renninger wrote:
> Hi,
>
> getting rid of lines with multiple instructions, separated by comma is
> certainly a good idea.
> One nit pick, though:
>
> Am Dienstag, 25. August 2020, 06:56:26 CEST schrieb Joe Perches:
> > Use semicolons and braces.
> >
> > Signed-off-by: Joe Perches <joe@...ches.com>
> > ---
[]
> I can remember patches being rejected with one line statements in a condition,
> surounded by braces.
> I just read up Documentation/process/coding-style.rst, to be sure this still is up-to-date.
> It's not a must, but line 180 says:
> "Do not unnecessarily use braces where a single statement will do."
Read the block immediately below that too:
"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 haven't reviewed every line, but I expect you only split up comma separated instructions
> into separate lines and added braces?
I do not.
While there was a defect using this style though in another patch,
this is a style only change.
> Afaik there isn't a specific tag, but having:
> cleanup only: No functional change
>
> in the changelog would be nice for people looking for fixes to backport.
This is not a fix, so it's not for backporting.
Powered by blists - more mailing lists