]> xenbits.xensource.com Git - pvdrivers/win/xenvbd.git/commitdiff
Remove logging from failed Pdo Pnp IRPs
authorOwen Smith <owen.smith@citrix.com>
Fri, 22 Apr 2016 10:29:31 +0000 (11:29 +0100)
committerPaul Durrant <paul.durrant@citrix.com>
Mon, 9 May 2016 12:30:55 +0000 (13:30 +0100)
Logging fail codes for unhandled Pnp IRPs is unneccesary and adds
significant noise with multiple VBDs. Its unlikely the return value
from storport is going to add significant insight to diagnose
problems.

Signed-off-by: Owen Smith <owen.smith@citrix.com>
src/xenvbd/pdo.c

index 918b824a21155ccd3907a8d8822b7bf364cc34b3..8a2cbe4c06f765673aa33ee04c0e87dd5e033bdc 100644 (file)
@@ -2366,7 +2366,6 @@ PdoDispatchPnp(
     PIO_STACK_LOCATION  Stack = IoGetCurrentIrpStackLocation(Irp);
     UCHAR               Minor = Stack->MinorFunction;
     ULONG               TargetId = PdoGetTargetId(Pdo);
-    NTSTATUS            Status;
 
     __PdoCheckEjectPending(Pdo);
 
@@ -2418,11 +2417,7 @@ PdoDispatchPnp(
         break;
     }
     PdoDereference(Pdo);
-    Status = DriverDispatchPnp(DeviceObject, Irp);
-    if (!NT_SUCCESS(Status)) {
-        Verbose("Target[%d] : %02x:%s -> %08x\n", TargetId, Minor, PnpMinorFunctionName(Minor), Status);
-    }
-    return Status;
+    return DriverDispatchPnp(DeviceObject, Irp);
 }
 
 __drv_maxIRQL(DISPATCH_LEVEL)