From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Rafael J. Wysocki" Subject: Re: [PATCH 6/7] cpufreq: intel_pstate: Trivial code cleanup Date: Tue, 10 Jun 2014 22:43:35 +0200 Message-ID: <1875587.zmLYOIAyby@vostro.rjw.lan> References: <5396208F.6070400@semaphore.gr> <5753346.hxK14sqO5y@vostro.rjw.lan> <5397673D.8010200@semaphore.gr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: <5397673D.8010200@semaphore.gr> Sender: linux-kernel-owner@vger.kernel.org To: Stratos Karafotis Cc: Dirk Brandewie , dirk.j.brandewie@intel.com, Viresh Kumar , "linux-pm@vger.kernel.org" , LKML List-Id: linux-pm@vger.kernel.org On Tuesday, June 10, 2014 11:14:53 PM Stratos Karafotis wrote: > On 10/06/2014 11:17 =CE=BC=CE=BC, Rafael J. Wysocki wrote: > > On Tuesday, June 10, 2014 10:26:44 AM Dirk Brandewie wrote: > >> On 06/10/2014 08:31 AM, Rafael J. Wysocki wrote: > >>> On Tuesday, June 10, 2014 08:12:48 AM Dirk Brandewie wrote: > >>>> On 06/09/2014 02:01 PM, Stratos Karafotis wrote: > >>>>> Remove unnecessary blank lines. > >>>>> Remove unnecessary parentheses. > >>>>> Remove unnecessary braces. > >>>>> Put the code in one line where possible. > >>>>> Add blank lines after variable declarations. > >>>>> Alignment to open parenthesis. > >>>>> > >>>> > >>>> I don't have an issue with this patch in general but I would rat= her > >>>> the cleanup be done when there is a functional change in the giv= en > >>>> hunk of code otherwise you are setting up a fence for stable/bac= kporters > >>>> of functional changes in the future. > >>> > >>> I actually prefer separate cleanups so as to avoid doing multiple= things > >>> in one patch. > >>> > >>> Rafael > >>> > >> I don't have strong feelings either way I was just trying to be ki= nd > >> to the maintainers of distro kernels. > >=20 > > And mixing fixes with cleanups in one patch doesn't do any good to = them. > >=20 > > Trust me, I used to work for a distro. :-) > >=20 >=20 > So, should I proceed and split the patch or drop it? :) I'm not sure why you'd want to split it? That said you're changing things that are intentional. For example, the if (acpi_disabled || ...) is. And the result of (a * 100) / b may generally be different from a * 100 / b for integers (if the division is carried out first). Rafael