[COMPBATT] Remove the useless WaitFlag field in the code which is never used

This commit is contained in:
George Bișoc 2024-12-14 23:07:18 +01:00
parent 04cd478035
commit f9ea9220d8
No known key found for this signature in database
GPG key ID: 688C4FBE25D7DEF6

View file

@ -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);