sm8250-common: power: Fix warnings
This commit is contained in:
@@ -101,13 +101,16 @@ void power_hint(power_hint_t hint, void *data)
|
||||
handles[hint].ref_count++;
|
||||
}
|
||||
else
|
||||
if (handles[hint].handle > 0)
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user