Change ASSERTs to assert on existent variables

svn path=/trunk/; revision=15252
This commit is contained in:
Hervé Poussineau 2005-05-12 21:46:50 +00:00
parent 7f0e11f913
commit dcb2ef8cd7
2 changed files with 4 additions and 2 deletions

View file

@ -201,9 +201,11 @@ BOOLEAN
SerialGetPerfStats(IN PIRP pIrp)
{
PSERIAL_DEVICE_EXTENSION pDeviceExtension;
ASSERT(Irp);
pDeviceExtension = (PSERIAL_DEVICE_EXTENSION)
IoGetCurrentIrpStackLocation(pIrp)->DeviceObject->DeviceExtension;
ASSERT(DeviceExtension);
/*
* we assume buffer is big enough to hold SerialPerfStats structure
* caller must verify this

View file

@ -31,7 +31,7 @@ SerialAddDeviceInternal(
DPRINT("Serial: SerialAddDeviceInternal called\n");
ASSERT(DeviceObject);
ASSERT(DriverObject);
ASSERT(Pdo);
/* Create new device object */