Author: hpoussin
Date: Fri Jul 25 15:28:59 2008
New Revision: 34793
URL:
http://svn.reactos.org/svn/reactos?rev=34793&view=rev
Log:
Cleanup code
Modified:
trunk/reactos/drivers/bus/pci/pci.c
Modified: trunk/reactos/drivers/bus/pci/pci.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/pci/pci.c?rev=…
==============================================================================
--- trunk/reactos/drivers/bus/pci/pci.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/bus/pci/pci.c [iso-8859-1] Fri Jul 25 15:28:59 2008
@@ -233,17 +233,9 @@
PciCreateInstanceIDString(PUNICODE_STRING InstanceID,
PPCI_DEVICE Device)
{
- WCHAR Buffer[32];
- ULONG Index;
-
- Index = 0;
- if
(((PPDO_DEVICE_EXTENSION)Device->Pdo->DeviceExtension)->PciDevice->BusNumber
!= 0)
- {
- /* FIXME: Copy InstanceID of parent PCI bus to Buffer */
- // Index += swprintf(Buffer, ....);
- }
-
- swprintf(&Buffer[Index], L"%02X", Device->SlotNumber.u.AsULONG &
0xff);
+ WCHAR Buffer[3];
+
+ swprintf(Buffer, L"%02X", Device->SlotNumber.u.AsULONG & 0xff);
return RtlCreateUnicodeString(InstanceID, Buffer) ? STATUS_SUCCESS :
STATUS_INSUFFICIENT_RESOURCES;
}