mirror of
https://github.com/reactos/reactos.git
synced 2026-05-31 08:17:09 +08:00
Change ASSERTs to assert on existent variables
svn path=/trunk/; revision=15252
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -31,7 +31,7 @@ SerialAddDeviceInternal(
|
||||
|
||||
DPRINT("Serial: SerialAddDeviceInternal called\n");
|
||||
|
||||
ASSERT(DeviceObject);
|
||||
ASSERT(DriverObject);
|
||||
ASSERT(Pdo);
|
||||
|
||||
/* Create new device object */
|
||||
|
||||
Reference in New Issue
Block a user