* [PATCH v1 1/3] PCI: Remove redundant brackets in pci_bus_distribute_available_resources()
@ 2020-01-06 15:45 Nicholas Johnson
2020-01-13 14:13 ` Mika Westerberg
0 siblings, 1 reply; 2+ messages in thread
From: Nicholas Johnson @ 2020-01-06 15:45 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>
---
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.24.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v1 1/3] PCI: Remove redundant brackets in pci_bus_distribute_available_resources()
2020-01-06 15:45 [PATCH v1 1/3] PCI: Remove redundant brackets in pci_bus_distribute_available_resources() Nicholas Johnson
@ 2020-01-13 14:13 ` Mika Westerberg
0 siblings, 0 replies; 2+ messages in thread
From: Mika Westerberg @ 2020-01-13 14:13 UTC (permalink / raw)
To: Nicholas Johnson
Cc: linux-kernel, linux-pci, Bjorn Helgaas, Benjamin Herrenschmidt,
Logan Gunthorpe
On Mon, Jan 06, 2020 at 03:45:32PM +0000, Nicholas Johnson wrote:
> 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>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-01-13 14:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-06 15:45 [PATCH v1 1/3] PCI: Remove redundant brackets in pci_bus_distribute_available_resources() Nicholas Johnson
2020-01-13 14:13 ` Mika Westerberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).