thermal: sprd: remove build warnings
[profile/mobile/platform/kernel/linux-3.10-sc7730.git] / drivers / thermal / sprd_thm.c
index 288a4b3..a96e5cc 100644 (file)
@@ -317,10 +317,10 @@ logtime_store(struct device *dev, struct device_attribute *attr,
        //struct thermal_zone_device *tz = to_thermal_zone(dev);
        struct thermal_zone_device *tz = container_of(dev, struct thermal_zone_device, device);
        int result;
-    unsigned long logtime;
-    if (kstrtoul(buf, 10, &logtime))
+       unsigned long logtime;
+       if (kstrtoul(buf, 10, &logtime))
                return -EINVAL;
-               result = sprd_sys_set_logtime(tz, logtime);
+       result = sprd_sys_set_logtime(tz, logtime);
        if (result)
                return result;
 
@@ -616,7 +616,6 @@ static void thm_logtime_work(struct work_struct *work)
 {
        struct sprd_thermal_zone *pzone;
        int temp;
-       unsigned long volt = 0;
        pzone = container_of(work, struct sprd_thermal_zone, thm_logtime_work.work);
        temp = pzone->ops->read_temp(pzone);
     printk(" thm sensor id:%d, logtime:%ld, temp:%d\n", pzone->sensor_id,pzone->logtime,temp);