summaryrefslogtreecommitdiff
path: root/src/device
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2024-03-23 15:10:04 +0100
committerElyes Haouas <ehaouas@noos.fr>2024-04-11 19:19:08 +0000
commit31402178c56108e752b95c34562b6e3554a2c1d8 (patch)
tree0ac4a3cea23ce5c66cc91f2883d3b30184d0f565 /src/device
parent1dc8f0272bd222125d2d26cfa2b311f3d134f6ca (diff)
tree: Remove blank lines before '}' and after '{'
Change-Id: I46a362270f69d0a4a28e5bb9c954f34d632815ff Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/81455 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/device')
-rw-r--r--src/device/mmio.c1
-rw-r--r--src/device/pci_device.c2
-rw-r--r--src/device/resource_allocator_v4.c4
3 files changed, 0 insertions, 7 deletions
diff --git a/src/device/mmio.c b/src/device/mmio.c
index b62805a78e..ec9acfa72c 100644
--- a/src/device/mmio.c
+++ b/src/device/mmio.c
@@ -40,5 +40,4 @@ void buffer_to_fifo32_prefix(const void *buffer, u32 prefix, int prefsz, size_t
val = 0;
j = 0;
}
-
}
diff --git a/src/device/pci_device.c b/src/device/pci_device.c
index 8ead8a5b6b..af3355d7cf 100644
--- a/src/device/pci_device.c
+++ b/src/device/pci_device.c
@@ -1491,7 +1491,6 @@ void pci_scan_bus(struct bus *bus, unsigned int min_devfn,
prev = &bus->children;
for (dev = bus->children; dev; dev = dev->sibling) {
-
/*
* If static device is not PCI then enable it here and don't
* treat it as a leftover device.
@@ -1851,7 +1850,6 @@ void pci_assign_irqs(struct device *dev, const unsigned char pIntAtoD[4])
slot = dev->path.pci.devfn >> 3;
for (; dev ; dev = dev->sibling) {
-
if (dev->path.pci.devfn >> 3 != slot)
break;
diff --git a/src/device/resource_allocator_v4.c b/src/device/resource_allocator_v4.c
index c9630bb4b0..44782d87a1 100644
--- a/src/device/resource_allocator_v4.c
+++ b/src/device/resource_allocator_v4.c
@@ -140,7 +140,6 @@ static void update_bridge_resource(const struct device *bridge, struct resource
print_bridge_res(bridge, bridge_res, print_depth, "");
while ((child = largest_resource(bus, &child_res, type_mask, type_match))) {
-
/* Size 0 resources can be skipped. */
if (!child_res->size)
continue;
@@ -260,7 +259,6 @@ static void compute_domain_resources(const struct device *domain)
return;
for (child = domain->downstream->children; child; child = child->sibling) {
-
/* Skip if this is not a bridge or has no children under it. */
if (!dev_has_children(child))
continue;
@@ -400,7 +398,6 @@ static void allocate_toplevel_resources(const struct device *const domain,
setup_resource_ranges(domain, type, &ranges);
while ((dev = largest_resource(domain->downstream, &res, type_mask, type))) {
-
if (!res->size)
continue;
@@ -557,7 +554,6 @@ void allocate_resources(const struct device *root)
return;
for (child = root->downstream->children; child; child = child->sibling) {
-
if (child->path.type != DEVICE_PATH_DOMAIN)
continue;