diff --git a/src/windows/wdfserial/QCMAIN.h b/src/windows/wdfserial/QCMAIN.h index bb88128..c1c7337 100644 --- a/src/windows/wdfserial/QCMAIN.h +++ b/src/windows/wdfserial/QCMAIN.h @@ -400,7 +400,6 @@ WDF_DECLARE_CONTEXT_TYPE_WITH_NAME(REQUEST_CONTEXT, QCReqGetContext) #define VEN_DEV_ZLP_ON L"QCDeviceZLPEnabled" #define VEN_DEV_CID L"QCDeviceCID" #define VEN_DEV_SOCVER L"QCDeviceSOCVER" -#define VEN_DEV_DESC L"QCDeviceDescription" //DBG Macros #define VEN_DRV_RESIDENT L"QCDriverResident" diff --git a/src/windows/wdfserial/QCPNP.c b/src/windows/wdfserial/QCPNP.c index f9d0b68..c8ed894 100644 --- a/src/windows/wdfserial/QCPNP.c +++ b/src/windows/wdfserial/QCPNP.c @@ -1436,39 +1436,13 @@ NTSTATUS QCPNP_EvtDevicePrepareHardware 0x0409 ); - if (!NT_SUCCESS(status)) - { - QCSER_DbgPrint - ( - QCSER_DBG_MASK_CONTROL, - QCSER_DBG_LEVEL_ERROR, - ("<%ws> QCPNP_EvtDevicePrepareHardware: USB ProductInfo query FAILED: 0x%x\n", pDevContext->PortName, status) - ); - ExFreePoolWithTag(buffer, '2gaT'); - // Continue with device initialization despite this failure - } - else - { - buffer[strLen] = L'\0'; - status = QCMAIN_SetDriverRegistryStringW(VEN_DEV_DESC, buffer, pDevContext); - if (!NT_SUCCESS(status)) - { - QCSER_DbgPrint - ( - QCSER_DBG_MASK_CONTROL, - (QCSER_DBG_LEVEL_ERROR), - ("<%ws> QCPNP_EvtDevicePrepareHardware: USB ProductInfo: set FAILED: 0x%x\n", pDevContext->PortName, status) - ); - } - else { - QCSER_DbgPrint - ( - QCSER_DBG_MASK_CONTROL, - QCSER_DBG_LEVEL_DETAIL, - ("<%ws> QCPNP_EvtDevicePrepareHardware USB ProductInfo: %ws, status: 0x%x, strlen: %llu\n", pDevContext->PortName, buffer, status, strLen) - ); - } - } + buffer[strLen] = L'\0'; + QCSER_DbgPrint + ( + QCSER_DBG_MASK_CONTROL, + QCSER_DBG_LEVEL_DETAIL, + ("<%ws> QCPNP_EvtDevicePrepareHardware USB ProductInfo: %ws, status: 0x%x, strlen: %llu\n", pDevContext->PortName, buffer, status, strLen) + ); ExFreePoolWithTag(buffer, '2gaT'); } // End printing usb device info as debug message }