Skip to content

Commit

Permalink
Remove unused HardwareId parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
Fredrik Orderud committed Mar 15, 2024
1 parent a7cfd4a commit 1db092d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
10 changes: 0 additions & 10 deletions TailLight/device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,16 +123,6 @@ Routine Description:

KdPrint(("TailLight: PdoName: %wZ\n", deviceContext->PdoName)); // outputs "\Device\00000083"
}
{
// initialize DEVICE_CONTEXT struct with HardwareId
deviceContext->HardwareId = GetTargetPropertyString(WdfDeviceGetIoTarget(device), DevicePropertyHardwareID);
if (!deviceContext->HardwareId.Buffer) {
KdPrint(("TailLight: HardwareId query failed\n"));
return STATUS_UNSUCCESSFUL;
}

KdPrint(("TailLight: HardwareId: %wZ\n", deviceContext->HardwareId));
}

{
// create queue for filtering
Expand Down
1 change: 0 additions & 1 deletion TailLight/device.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
struct DEVICE_CONTEXT {
UNICODE_STRING PdoName;
WDFWMIINSTANCE WmiInstance;
UNICODE_STRING HardwareId;
};
WDF_DECLARE_CONTEXT_TYPE(DEVICE_CONTEXT)

Expand Down

0 comments on commit 1db092d

Please sign in to comment.