Skip to content

Commit

Permalink
CWdfUsbTarget: Do not delete USB target explicitely
Browse files Browse the repository at this point in the history
USB target will be deleted together with its parent device

Signed-off-by: Dmitry Fleytman <[email protected]>
  • Loading branch information
Dmitry Fleytman committed Nov 24, 2015
1 parent 192195f commit d9de221
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
8 changes: 0 additions & 8 deletions UsbDk/UsbTarget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -268,14 +268,6 @@ NTSTATUS CWdfUsbTarget::Create(WDFDEVICE Device)
return STATUS_SUCCESS;
}

CWdfUsbTarget::~CWdfUsbTarget()
{
if (m_UsbDevice != WDF_NO_HANDLE)
{
WdfObjectDelete(m_UsbDevice);
}
}

void CWdfUsbTarget::DeviceDescriptor(USB_DEVICE_DESCRIPTOR &Descriptor)
{
WdfUsbTargetDeviceGetDeviceDescriptor(m_UsbDevice, &Descriptor);
Expand Down
1 change: 0 additions & 1 deletion UsbDk/UsbTarget.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ class CWdfUsbTarget
{
public:
CWdfUsbTarget() {}
~CWdfUsbTarget();

NTSTATUS Create(WDFDEVICE Device);
void DeviceDescriptor(USB_DEVICE_DESCRIPTOR &Descriptor);
Expand Down

0 comments on commit d9de221

Please sign in to comment.