summaryrefslogtreecommitdiff
path: root/src/device
diff options
context:
space:
mode:
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;