power: fix unused variable issue 65/91965/1
authortaeyoung <ty317.kim@samsung.com>
Wed, 12 Oct 2016 09:58:10 +0000 (18:58 +0900)
committertaeyoung <ty317.kim@samsung.com>
Wed, 12 Oct 2016 10:00:22 +0000 (19:00 +0900)
Signed-off-by: taeyoung <ty317.kim@samsung.com>
Change-Id: I28d096213288a613c3d93af391bcbadd2222c9ba

src/power.c

index b1088ae..d2c7400 100644 (file)
 #define LOCK_CPU_TIMEOUT_MAX       (60*60*1000) /* milliseconds */
 #define LOCK_CPU_PADDING_TIMEOUT   (20*1000) /* milliseconds */
 
+#ifdef TIZEN_FEATURE_TRACKER
 static guint off_lock_timeout;
 static guint padding_timeout;
 static int prev_count;
+#endif
 
 static char *get_state_str(display_state_e state)
 {
@@ -340,7 +342,7 @@ int device_power_release_lock(power_lock_e type)
 
        if (type == POWER_LOCK_CPU) {
                ret = unlock_state(DISPLAY_STATE_SCREEN_OFF, PM_SLEEP_MARGIN);
-               if (ret == 0 && off_lock_timeout > 0) {
+               if (ret == 0) {
                        remove_off_lock_timeout();
                        remove_padding_timeout();
                }