https://git.reactos.org/?p=reactos.git;a=commitdiff;h=f9ea9220d8612368be66d…
commit f9ea9220d8612368be66db2182ebb6837ac68306
Author: George Bișoc <george.bisoc(a)reactos.org>
AuthorDate: Sat Dec 14 23:07:18 2024 +0100
Commit: George Bișoc <george.bisoc(a)reactos.org>
CommitDate: Wed Jan 8 23:20:06 2025 +0100
[COMPBATT] Remove the useless WaitFlag field in the code which is never used
---
drivers/bus/acpi/compbatt/comppnp.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/bus/acpi/compbatt/comppnp.c b/drivers/bus/acpi/compbatt/comppnp.c
index 141ec2ebbe4..f16bfd2ed3d 100644
--- a/drivers/bus/acpi/compbatt/comppnp.c
+++ b/drivers/bus/acpi/compbatt/comppnp.c
@@ -165,7 +165,6 @@ CompBattAddNewBattery(IN PUNICODE_STRING BatteryName,
/* Set IRP data */
IoSetNextIrpStackLocation(Irp);
Irp->IoStatus.Status = STATUS_DEVICE_NOT_CONNECTED;
- BatteryData->WaitFlag = 0;
/* Insert this battery in the list */
ExAcquireFastMutex(&DeviceExtension->Lock);