Re: [PATCH 3/5] Thermal: fix empty list checking method.

2012-10-17 Thread Viresh Kumar
On 16 October 2012 17:14, hongbo.zhang wrote: > From: "hongbo.zhang" > > Is is not reliable to check the list entry pointer after > list_for_each_entry loop, list_empty should be used instead. > > Signed-off-by: hongbo.zhang > --- > drivers/thermal/cpu_cooling.c | 5 +++-- > 1 file changed, 3

Re: [PATCH 3/5] Thermal: fix empty list checking method.

2012-10-17 Thread Viresh Kumar
On 16 October 2012 17:14, hongbo.zhang hongbo.zh...@linaro.org wrote: From: hongbo.zhang hongbo.zh...@linaro.com Is is not reliable to check the list entry pointer after list_for_each_entry loop, list_empty should be used instead. Signed-off-by: hongbo.zhang hongbo.zh...@linaro.com ---

[PATCH 3/5] Thermal: fix empty list checking method.

2012-10-16 Thread hongbo.zhang
From: "hongbo.zhang" Is is not reliable to check the list entry pointer after list_for_each_entry loop, list_empty should be used instead. Signed-off-by: hongbo.zhang --- drivers/thermal/cpu_cooling.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git

[PATCH 3/5] Thermal: fix empty list checking method.

2012-10-16 Thread hongbo.zhang
From: hongbo.zhang hongbo.zh...@linaro.com Is is not reliable to check the list entry pointer after list_for_each_entry loop, list_empty should be used instead. Signed-off-by: hongbo.zhang hongbo.zh...@linaro.com --- drivers/thermal/cpu_cooling.c | 5 +++-- 1 file changed, 3 insertions(+), 2