power: Fix a few compiler warnings

* And unify styling a little bit

Change-Id: I7f9bb43a534e352fdd7693ff975749864f8addb3
This commit is contained in:
Paul Keith
2017-12-31 02:17:32 +01:00
committed by Michael Bestas
parent 2759522e9d
commit 0c54d07956
3 changed files with 8 additions and 9 deletions

View File

@@ -78,11 +78,9 @@ void power_hint(power_hint_t hint, void *data)
return;
}
switch(hint) {
case POWER_HINT_VSYNC:
break;
case POWER_HINT_VR_MODE:
ALOGI("VR mode power hint not handled in power_hint_override");
break;
break;
case POWER_HINT_INTERACTION:
{
int resources[] = {0x702, 0x20F, 0x30F};
@@ -100,16 +98,16 @@ void power_hint(power_hint_t hint, void *data)
if (handles[hint].handle > 0)
handles[hint].ref_count++;
}
else
} else {
if (handles[hint].handle > 0) {
if (--handles[hint].ref_count == 0) {
release_request(handles[hint].handle);
handles[hint].handle = 0;
}
}
else
} else {
ALOGE("Lock for hint: %X was not acquired, cannot be released", hint);
}
}
break;
default:
break;