fix warnings in samsung pm lock 43/15443/2
authorJaska Uimonen <jaska.uimonen@helsinki.fi>
Thu, 31 Oct 2013 08:01:50 +0000 (10:01 +0200)
committerJaska Uimonen <jaska.uimonen@intel.com>
Mon, 27 Jan 2014 11:16:43 +0000 (13:16 +0200)
Change-Id: I93461d724f79c6427949f15b6c37eb6ae5707f70
Signed-off-by: Jaska Uimonen <jaska.uimonen@intel.com>
src/modules/module-suspend-on-idle.c

index 6c0935e..2d51e71 100644 (file)
@@ -208,7 +208,10 @@ static int pm_unlock_state(unsigned int s_bits, unsigned int flag)
 
 static void timeout_cb(pa_mainloop_api*a, pa_time_event* e, const struct timeval *t, void *userdata) {
     struct device_info *d = userdata;
+
+#ifdef USE_PM_LOCK
     int ret = -1;
+#endif
 
     pa_assert(d);
 
@@ -264,7 +267,9 @@ static void restart(struct device_info *d) {
 }
 
 static void resume(struct device_info *d) {
+#ifdef USE_PM_LOCK
     int ret = -1;
+#endif
 
     pa_assert(d);