Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1300497 > unrolled thread

Re: [PATCH] cpufreq-dt: fix handling regulator_get_voltage result

Started byViresh Kumar <viresh.kumar@linaro.org>
First post2016-01-04 06:30 +0100
Last post2016-01-05 13:40 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] cpufreq-dt: fix handling regulator_get_voltage result Viresh Kumar <viresh.kumar@linaro.org> - 2016-01-04 06:30 +0100
    Re: [PATCH] cpufreq-dt: fix handling regulator_get_voltage result "Rafael J. Wysocki" <rjw@rjwysocki.net> - 2016-01-05 13:40 +0100

#1300497 — Re: [PATCH] cpufreq-dt: fix handling regulator_get_voltage result

FromViresh Kumar <viresh.kumar@linaro.org>
Date2016-01-04 06:30 +0100
SubjectRe: [PATCH] cpufreq-dt: fix handling regulator_get_voltage result
Message-ID<qN5Sq-7iy-5@gated-at.bofh.it>
On 30-12-15, 12:18, Andrzej Hajda wrote:
> The function can return negative values so it should be assigned
> to signed type.
> 
> The problem has been detected using proposed semantic patch
> scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci [1].
> 
> [1]: http://permalink.gmane.org/gmane.linux.kernel/2038576
> 
> Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
> ---
>  drivers/cpufreq/cpufreq-dt.c | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)

Acked-by: Viresh Kumar <viresh.kumar@linaro.org>

-- 
viresh
--
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/

[toc] | [next] | [standalone]


#1301496

From"Rafael J. Wysocki" <rjw@rjwysocki.net>
Date2016-01-05 13:40 +0100
Message-ID<qNz46-2Jv-13@gated-at.bofh.it>
In reply to#1300497
On Monday, January 04, 2016 10:58:56 AM Viresh Kumar wrote:
> On 30-12-15, 12:18, Andrzej Hajda wrote:
> > The function can return negative values so it should be assigned
> > to signed type.
> > 
> > The problem has been detected using proposed semantic patch
> > scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci [1].
> > 
> > [1]: http://permalink.gmane.org/gmane.linux.kernel/2038576
> > 
> > Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
> > ---
> >  drivers/cpufreq/cpufreq-dt.c | 5 +++--
> >  1 file changed, 3 insertions(+), 2 deletions(-)
> 
> Acked-by: Viresh Kumar <viresh.kumar@linaro.org>

Applied, thanks!

Rafael

--
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/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web