mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 07:56:59 +00:00
Change ASSERTs to assert on existent variables
svn path=/trunk/; revision=15252
This commit is contained in:
parent
7f0e11f913
commit
dcb2ef8cd7
2 changed files with 4 additions and 2 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue