Skip to content

Commit 1db092d

Browse files
author
Fredrik Orderud
committed
Remove unused HardwareId parameter.
1 parent a7cfd4a commit 1db092d

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

TailLight/device.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -123,16 +123,6 @@ Routine Description:
123123

124124
KdPrint(("TailLight: PdoName: %wZ\n", deviceContext->PdoName)); // outputs "\Device\00000083"
125125
}
126-
{
127-
// initialize DEVICE_CONTEXT struct with HardwareId
128-
deviceContext->HardwareId = GetTargetPropertyString(WdfDeviceGetIoTarget(device), DevicePropertyHardwareID);
129-
if (!deviceContext->HardwareId.Buffer) {
130-
KdPrint(("TailLight: HardwareId query failed\n"));
131-
return STATUS_UNSUCCESSFUL;
132-
}
133-
134-
KdPrint(("TailLight: HardwareId: %wZ\n", deviceContext->HardwareId));
135-
}
136126

137127
{
138128
// create queue for filtering

TailLight/device.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
struct DEVICE_CONTEXT {
55
UNICODE_STRING PdoName;
66
WDFWMIINSTANCE WmiInstance;
7-
UNICODE_STRING HardwareId;
87
};
98
WDF_DECLARE_CONTEXT_TYPE(DEVICE_CONTEXT)
109

0 commit comments

Comments
 (0)