[Bugfix][T106BUG-224]acquire_wake_lock return is 0

Only Configure: No
Affected branch: master
Affected module: autosuspend
Is it affected on both ZXIC and MTK: only ZXIC
Self-test: Yes
Doc Update: No

Change-Id: Ied02e15d7bbb6ac25d232a451c539e0883828f2f
diff --git a/cap/zx297520v3/src/lynq/lib/liblynq-qser-autosuspend/lynq-qser-autosuspend.cpp b/cap/zx297520v3/src/lynq/lib/liblynq-qser-autosuspend/lynq-qser-autosuspend.cpp
index 3ff2634..2a5ff52 100755
--- a/cap/zx297520v3/src/lynq/lib/liblynq-qser-autosuspend/lynq-qser-autosuspend.cpp
+++ b/cap/zx297520v3/src/lynq/lib/liblynq-qser-autosuspend/lynq-qser-autosuspend.cpp
@@ -301,6 +301,14 @@
     }
     ret = read_lock_table();
     ret = acquire_wake_lock( 0, lock_status.lock_name[fd]);
+    if(ret > 0)
+    {
+        ret = 0;
+    }
+    else
+    {
+        ret = -1;
+    }
     return ret;
 }
 
@@ -318,6 +326,14 @@
         return -1;
     }
     ret = release_wake_lock(lock_status.lock_name[fd]);
+    if(ret > 0)
+    {
+        ret = 0;
+    }
+    else
+    {
+        ret = -1;
+    }
     return ret;
 }