Previously applied sanity check fixup is incorrect.
Signed-off-by: Espen Skoglund <espen.skoglund@netronome.com>
bus = scope->start_bus;
depth = (scope->length - sizeof(struct acpi_dev_scope))
/ sizeof(struct acpi_pci_path);
- while ( --depth >= 0 )
+ while ( --depth > 0 )
{
bus = read_pci_config_byte(
bus, path->dev, path->fn, PCI_SECONDARY_BUS);
/ sizeof(struct acpi_pci_path);
bus = scope->start_bus;
- while ( --depth >= 0 )
+ while ( --depth > 0 )
{
bus = read_pci_config_byte(
bus, path->dev, path->fn, PCI_SECONDARY_BUS);