* [PATCH] Remove unnecessary braces
@ 2013-10-15 17:42 Evgeny Kapaev
2013-10-16 4:32 ` Viresh Kumar
0 siblings, 1 reply; 3+ messages in thread
From: Evgeny Kapaev @ 2013-10-15 17:42 UTC (permalink / raw)
To: cpufreq; +Cc: rjw, viresh.kumar
As per coding style, braces {} are not necessary for single statement block
Signed-off-by: Evgeny Kapaev <orener300@gmail.com>
---
drivers/cpufreq/speedstep-centrino.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/cpufreq/speedstep-centrino.c b/drivers/cpufreq/speedstep-centrino.c
index f897d51..98797a6 100644
--- a/drivers/cpufreq/speedstep-centrino.c
+++ b/drivers/cpufreq/speedstep-centrino.c
@@ -373,9 +373,8 @@ static int centrino_cpu_init(struct cpufreq_policy *policy)
return -ENODEV;
}
- if (centrino_cpu_init_table(policy)) {
+ if (centrino_cpu_init_table(policy))
return -ENODEV;
- }
/* Check to see if Enhanced SpeedStep is enabled, and try to
enable it if not. */
--
1.8.1.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Remove unnecessary braces
2013-10-15 17:42 [PATCH] Remove unnecessary braces Evgeny Kapaev
@ 2013-10-16 4:32 ` Viresh Kumar
2013-10-16 22:34 ` Rafael J. Wysocki
0 siblings, 1 reply; 3+ messages in thread
From: Viresh Kumar @ 2013-10-16 4:32 UTC (permalink / raw)
To: Evgeny Kapaev; +Cc: cpufreq, rjw, linux-pm@vger.kernel.org
On 15/10/2013, Evgeny Kapaev <orener300@gmail.com> wrote:
> As per coding style, braces {} are not necessary for single statement block
>
> Signed-off-by: Evgeny Kapaev <orener300@gmail.com>
> ---
> drivers/cpufreq/speedstep-centrino.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/cpufreq/speedstep-centrino.c
> b/drivers/cpufreq/speedstep-centrino.c
> index f897d51..98797a6 100644
> --- a/drivers/cpufreq/speedstep-centrino.c
> +++ b/drivers/cpufreq/speedstep-centrino.c
> @@ -373,9 +373,8 @@ static int centrino_cpu_init(struct cpufreq_policy
> *policy)
> return -ENODEV;
> }
>
> - if (centrino_cpu_init_table(policy)) {
> + if (centrino_cpu_init_table(policy))
> return -ENODEV;
> - }
>
> /* Check to see if Enhanced SpeedStep is enabled, and try to
> enable it if not. */
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Remove unnecessary braces
2013-10-16 4:32 ` Viresh Kumar
@ 2013-10-16 22:34 ` Rafael J. Wysocki
0 siblings, 0 replies; 3+ messages in thread
From: Rafael J. Wysocki @ 2013-10-16 22:34 UTC (permalink / raw)
To: Viresh Kumar; +Cc: Evgeny Kapaev, cpufreq, linux-pm@vger.kernel.org
On Wednesday, October 16, 2013 10:02:45 AM Viresh Kumar wrote:
> On 15/10/2013, Evgeny Kapaev <orener300@gmail.com> wrote:
> > As per coding style, braces {} are not necessary for single statement block
> >
> > Signed-off-by: Evgeny Kapaev <orener300@gmail.com>
Queued up for 3.13, thanks!
> > ---
> > drivers/cpufreq/speedstep-centrino.c | 3 +--
> > 1 file changed, 1 insertion(+), 2 deletions(-)
> >
> > diff --git a/drivers/cpufreq/speedstep-centrino.c
> > b/drivers/cpufreq/speedstep-centrino.c
> > index f897d51..98797a6 100644
> > --- a/drivers/cpufreq/speedstep-centrino.c
> > +++ b/drivers/cpufreq/speedstep-centrino.c
> > @@ -373,9 +373,8 @@ static int centrino_cpu_init(struct cpufreq_policy
> > *policy)
> > return -ENODEV;
> > }
> >
> > - if (centrino_cpu_init_table(policy)) {
> > + if (centrino_cpu_init_table(policy))
> > return -ENODEV;
> > - }
> >
> > /* Check to see if Enhanced SpeedStep is enabled, and try to
> > enable it if not. */
>
> Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-pm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-10-16 22:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-15 17:42 [PATCH] Remove unnecessary braces Evgeny Kapaev
2013-10-16 4:32 ` Viresh Kumar
2013-10-16 22:34 ` Rafael J. Wysocki
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.