mirror of
https://github.com/reactos/reactos.git
synced 2026-06-03 01:41:13 +08:00
[NTOS:IO] IopCreateArcNames(): Remove unused variable and improve comments
This has been forgotten since the split of `IopCreateArcNames()`
in commit 6d0861e9ed (r49131).
Also, improve comments regarding `ArcHalDeviceName` vs. `ArcBootDeviceName`.
This commit is contained in:
@@ -45,20 +45,20 @@ IopCreateArcNames(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
||||
BOOLEAN FoundBoot = FALSE;
|
||||
UNICODE_STRING SystemDevice, LoaderPathNameW, BootDeviceName;
|
||||
PARC_DISK_INFORMATION ArcDiskInfo = LoaderBlock->ArcDiskInformation;
|
||||
ANSI_STRING ArcSystemString, ArcString, LanmanRedirector, LoaderPathNameA;
|
||||
ANSI_STRING ArcString, LanmanRedirector, LoaderPathNameA;
|
||||
|
||||
/* Check if we only have one disk on the machine */
|
||||
SingleDisk = (ArcDiskInfo->DiskSignatureListHead.Flink->Flink ==
|
||||
&ArcDiskInfo->DiskSignatureListHead);
|
||||
|
||||
/* Create the global HAL partition name */
|
||||
/* Create the firmware system loader / HAL partition global name */
|
||||
sprintf(Buffer, "\\ArcName\\%s", LoaderBlock->ArcHalDeviceName);
|
||||
RtlInitAnsiString(&ArcString, Buffer);
|
||||
Status = RtlAnsiStringToUnicodeString(&IoArcHalDeviceName, &ArcString, TRUE);
|
||||
if (!NT_SUCCESS(Status))
|
||||
return Status;
|
||||
|
||||
/* Create the global system partition name */
|
||||
/* Create the OS boot partition global name */
|
||||
sprintf(Buffer, "\\ArcName\\%s", LoaderBlock->ArcBootDeviceName);
|
||||
RtlInitAnsiString(&ArcString, Buffer);
|
||||
Status = RtlAnsiStringToUnicodeString(&IoArcBootDeviceName, &ArcString, TRUE);
|
||||
@@ -85,9 +85,6 @@ IopCreateArcNames(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
||||
SingleDisk = FALSE;
|
||||
}
|
||||
|
||||
/* Build the boot strings */
|
||||
RtlInitAnsiString(&ArcSystemString, LoaderBlock->ArcHalDeviceName);
|
||||
|
||||
/* If we are doing remote booting */
|
||||
if (IoRemoteBootClient)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user