Thread (3 messages) 3 messages, 3 authors, 2016-01-05

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

From: Rafael J. Wysocki <hidden>
Date: 2016-01-05 12:32:44
Also in: lkml

On Monday, January 04, 2016 10:58:56 AM Viresh Kumar wrote:
On 30-12-15, 12:18, Andrzej Hajda wrote:
quoted
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 <redacted>
---
 drivers/cpufreq/cpufreq-dt.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Applied, thanks!

Rafael
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help