All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 1/3] PCI: Remove redundant brackets in pci_bus_distribute_available_resources()
@ 2020-01-15 17:55 Nicholas Johnson
  0 siblings, 0 replies; only message in thread
From: Nicholas Johnson @ 2020-01-15 17:55 UTC (permalink / raw)
  To: linux-kernel
  Cc: linux-pci, Bjorn Helgaas, Mika Westerberg,
	Benjamin Herrenschmidt, Logan Gunthorpe, Nicholas Johnson

Remove redundant brackets in pci_bus_distribute_available_resources().

No functional changes.

Signed-off-by: Nicholas Johnson <nicholas.johnson-opensource@outlook.com.au>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
---
 drivers/pci/setup-bus.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/pci/setup-bus.c b/drivers/pci/setup-bus.c
index f27982620..465a8b565 100644
--- a/drivers/pci/setup-bus.c
+++ b/drivers/pci/setup-bus.c
@@ -1902,11 +1902,10 @@ static void pci_bus_distribute_available_resources(struct pci_bus *bus,
 	 */
 	if (hotplug_bridges + normal_bridges == 1) {
 		dev = list_first_entry(&bus->devices, struct pci_dev, bus_list);
-		if (dev->subordinate) {
+		if (dev->subordinate)
 			pci_bus_distribute_available_resources(dev->subordinate,
 				add_list, available_io, available_mmio,
 				available_mmio_pref);
-		}
 		return;
 	}
 
-- 
2.25.0


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-01-15 17:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-15 17:55 [PATCH v2 1/3] PCI: Remove redundant brackets in pci_bus_distribute_available_resources() Nicholas Johnson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.