power: fix unused variable issue 99/98599/1
authortaeyoung <ty317.kim@samsung.com>
Wed, 12 Oct 2016 09:58:10 +0000 (18:58 +0900)
committertaeyoung <ty317.kim@samsung.com>
Fri, 18 Nov 2016 01:52:02 +0000 (10:52 +0900)
Signed-off-by: taeyoung <ty317.kim@samsung.com>
Change-Id: I5ad15359a5d6254d372aef03f89537ae199161fc

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();
                }