mirror of https://github.com/acidanthera/audk.git
Fix compiler warnings.
Signed-off-by: rsun3 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12606 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
034307a7ec
commit
50bdaa0592
|
@ -937,13 +937,13 @@ PciAllocateBusNumber (
|
|||
while (BusNumberRanges->Desc != ACPI_END_TAG_DESCRIPTOR) {
|
||||
MaxNumberInRange = BusNumberRanges->AddrRangeMin + BusNumberRanges->AddrLen - 1;
|
||||
if (StartBusNumber >= BusNumberRanges->AddrRangeMin && StartBusNumber <= MaxNumberInRange) {
|
||||
NextNumber = StartBusNumber + NumberOfBuses;
|
||||
NextNumber = (UINT8)(StartBusNumber + NumberOfBuses);
|
||||
while (NextNumber > MaxNumberInRange) {
|
||||
++BusNumberRanges;
|
||||
if (BusNumberRanges->Desc == ACPI_END_TAG_DESCRIPTOR) {
|
||||
return EFI_OUT_OF_RESOURCES;
|
||||
}
|
||||
NextNumber += (UINT8)(BusNumberRanges->AddrRangeMin - (MaxNumberInRange + 1));
|
||||
NextNumber = (UINT8)(NextNumber + (BusNumberRanges->AddrRangeMin - (MaxNumberInRange + 1)));
|
||||
MaxNumberInRange = BusNumberRanges->AddrRangeMin + BusNumberRanges->AddrLen - 1;
|
||||
}
|
||||
*NextBusNumber = NextNumber;
|
||||
|
|
Loading…
Reference in New Issue