summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSasha Levitskiy2014-04-10 19:10:21 -0500
committerSasha Levitskiy2014-04-11 18:15:46 -0500
commitcdc1cfb3e51f3caddc1f290b46dc789c036f22ed (patch)
tree4ba56b89ded1fbcf8d8f1dbe75a7d3844f713739 /libsuspend
parent822b1a024d058641be9aefa14da794f09755ce35 (diff)
downloadplatform-system-core-cdc1cfb3e51f3caddc1f290b46dc789c036f22ed.tar.gz
platform-system-core-cdc1cfb3e51f3caddc1f290b46dc789c036f22ed.tar.xz
platform-system-core-cdc1cfb3e51f3caddc1f290b46dc789c036f22ed.zip
Cleanup: warning fixit.
bootable/recovery has a dependent commit: I9adb470b04e4301989d128c9c3097b21b4dea431 Change-Id: Icf23e659265d71d5226d527c2b40cfbc132320ee Signed-off-by: Sasha Levitskiy <sanek@google.com>
Diffstat (limited to 'libsuspend')
-rw-r--r--libsuspend/autosuspend_earlysuspend.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/libsuspend/autosuspend_earlysuspend.c b/libsuspend/autosuspend_earlysuspend.c
index 1df8c6a13..2bece4c3b 100644
--- a/libsuspend/autosuspend_earlysuspend.c
+++ b/libsuspend/autosuspend_earlysuspend.c
@@ -75,13 +75,8 @@ static int wait_for_fb_sleep(void)
75 return err < 0 ? err : 0; 75 return err < 0 ? err : 0;
76} 76}
77 77
78static void *earlysuspend_thread_func(void *arg) 78static void *earlysuspend_thread_func(void __unused *arg)
79{ 79{
80 char buf[80];
81 char wakeup_count[20];
82 int wakeup_count_len;
83 int ret;
84
85 while (1) { 80 while (1) {
86 if (wait_for_fb_sleep()) { 81 if (wait_for_fb_sleep()) {
87 ALOGE("Failed reading wait_for_fb_sleep, exiting earlysuspend thread\n"); 82 ALOGE("Failed reading wait_for_fb_sleep, exiting earlysuspend thread\n");