ACPI: Fix -Wunused-but-set-variable.
This commit is contained in:
@@ -729,11 +729,9 @@ EcWaitEvent(struct acpi_ec_cookie* sc, EC_EVENT event, int32 generationCount)
|
|||||||
// status register each time we get one. It's possible to get a
|
// status register each time we get one. It's possible to get a
|
||||||
// GPE for an event we're not interested in here (i.e., SCI for
|
// GPE for an event we're not interested in here (i.e., SCI for
|
||||||
// EC query).
|
// EC query).
|
||||||
status_t waitStatus = B_NO_ERROR;
|
|
||||||
for (i = 0; i < ec_timeout; i++) {
|
for (i = 0; i < ec_timeout; i++) {
|
||||||
if (generationCount == sc->ec_gencount) {
|
if (generationCount == sc->ec_gencount) {
|
||||||
waitStatus =
|
sc->ec_condition_var.Wait(B_RELATIVE_TIMEOUT, 1000);
|
||||||
sc->ec_condition_var.Wait(B_RELATIVE_TIMEOUT, 1000);
|
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
* Record new generation count. It's possible the GPE was
|
* Record new generation count. It's possible the GPE was
|
||||||
|
|||||||
Reference in New Issue
Block a user