mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 18:52:57 +00:00
- Remove superflouous checks
- Found by amine48rz svn path=/trunk/; revision=42606
This commit is contained in:
parent
11caab78fd
commit
85543388b1
1 changed files with 11 additions and 17 deletions
|
@ -91,7 +91,7 @@ PcAddAdapterDevice(
|
||||||
IN ULONG DeviceExtensionSize)
|
IN ULONG DeviceExtensionSize)
|
||||||
{
|
{
|
||||||
NTSTATUS status = STATUS_UNSUCCESSFUL;
|
NTSTATUS status = STATUS_UNSUCCESSFUL;
|
||||||
PDEVICE_OBJECT fdo = NULL;
|
PDEVICE_OBJECT fdo;
|
||||||
PDEVICE_OBJECT PrevDeviceObject;
|
PDEVICE_OBJECT PrevDeviceObject;
|
||||||
PPCLASS_DEVICE_EXTENSION portcls_ext = NULL;
|
PPCLASS_DEVICE_EXTENSION portcls_ext = NULL;
|
||||||
|
|
||||||
|
@ -200,9 +200,6 @@ PcAddAdapterDevice(
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
|
|
||||||
if (portcls_ext)
|
|
||||||
{
|
|
||||||
|
|
||||||
if (portcls_ext->KsDeviceHeader)
|
if (portcls_ext->KsDeviceHeader)
|
||||||
{
|
{
|
||||||
/* free the device header */
|
/* free the device header */
|
||||||
|
@ -214,13 +211,10 @@ cleanup:
|
||||||
/* free previously allocated create items */
|
/* free previously allocated create items */
|
||||||
FreeItem(portcls_ext->CreateItems, TAG_PORTCLASS);
|
FreeItem(portcls_ext->CreateItems, TAG_PORTCLASS);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (fdo)
|
|
||||||
{
|
|
||||||
/* delete created fdo */
|
/* delete created fdo */
|
||||||
IoDeleteDevice(fdo);
|
IoDeleteDevice(fdo);
|
||||||
}
|
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue