[USBSTOR] Remove workarounds for old storage stack

This commit is contained in:
Victor Perevertkin 2020-12-06 23:32:29 +03:00
parent aa05649902
commit 39c48a4d91
No known key found for this signature in database
GPG key ID: C750B7222E9C7830
3 changed files with 1 additions and 21 deletions

View file

@ -327,15 +327,7 @@ USBSTOR_FdoHandlePnp(
case IRP_MN_QUERY_STOP_DEVICE:
case IRP_MN_QUERY_REMOVE_DEVICE:
{
#if 0
//
// we can if nothing is pending
//
if (DeviceExtension->IrpPendingCount != 0 ||
DeviceExtension->ActiveSrb != NULL)
#else
if (TRUE)
#endif
if (DeviceExtension->IrpPendingCount != 0 || DeviceExtension->ActiveSrb != NULL)
{
/* We have pending requests */
DPRINT1("Failing removal/stop request due to pending requests present\n");