diff mbox

[1/2] Remove un-necessary variable checking

Message ID 1342165901-24800-2-git-send-email-hongbo.zhang@linaro.com
State New
Headers show

Commit Message

Hongbo Zhang July 13, 2012, 7:51 a.m. UTC
From: "hongbo.zhang" <hongbo.zhang@linaro.com>


Signed-off-by: hongbo.zhang <hongbo.zhang@linaro.com>
---
 drivers/thermal/cpu_cooling.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff mbox

Patch

diff --git a/drivers/thermal/cpu_cooling.c b/drivers/thermal/cpu_cooling.c
index c40d9a0..a8aa10f 100644
--- a/drivers/thermal/cpu_cooling.c
+++ b/drivers/thermal/cpu_cooling.c
@@ -399,8 +399,7 @@  struct thermal_cooling_device *cpufreq_cooling_register(
 	/*Verify that all the entries of freq_clip_table are present*/
 	for (i = 0; i < tab_size; i++) {
 		clip_tab = ((struct freq_clip_table *)&tab_ptr[i]);
-		if (!clip_tab->freq_clip_max || !clip_tab->mask_val
-					|| !clip_tab->temp_level) {
+		if (!clip_tab->freq_clip_max || !clip_tab->mask_val) {
 			kfree(cpufreq_dev);
 			return ERR_PTR(-EINVAL);
 		}