]> www.infradead.org Git - users/dwmw2/linux.git/commit
PCI: Simplify pci_read_bridge_bases() logic
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Thu, 17 Oct 2024 14:11:10 +0000 (17:11 +0300)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 18 Oct 2024 18:35:33 +0000 (13:35 -0500)
commit32ec7b362d904c1e67f8e64524fb0b6c43d5c9c2
tree42e7d5c6e201012597f9884b357ed1b4caebed42
parent469c9cb941480718db52876bbdb95a7a79b34889
PCI: Simplify pci_read_bridge_bases() logic

Use reverse logic combined with return and continue to significantly
reduce indentation level in pci_read_bridge_bases().

Link: https://lore.kernel.org/r/20241017141111.44612-3-ilpo.jarvinen@linux.intel.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/pci/probe.c