]> xenbits.xensource.com Git - seabios.git/commitdiff
pciinit: Minor white space changes.
authorKevin O'Connor <kevin@koconnor.net>
Fri, 27 Apr 2012 02:04:34 +0000 (22:04 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Fri, 27 Apr 2012 02:04:34 +0000 (22:04 -0400)
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
src/pciinit.c

index 25b04ac7ccecfb58e3b8279aae4f689297b10b94..c288fe7fb17680e313900fa14b5dda2fe2cd4c1d 100644 (file)
@@ -382,8 +382,8 @@ static u64 pci_region_sum(struct pci_region *r)
     while (entry) {
         sum += entry->size;
         entry = entry->next;
-   }
-   return sum;
+    }
+    return sum;
 }
 
 static void pci_region_migrate_64bit_entries(struct pci_region *from,
@@ -391,7 +391,7 @@ static void pci_region_migrate_64bit_entries(struct pci_region *from,
 {
     struct pci_region_entry **pprev = &from->list;
     struct pci_region_entry **last = &to->list;
-    while(*pprev) {
+    while (*pprev) {
         if ((*pprev)->is64) {
             struct pci_region_entry *entry;
             entry = *pprev;
@@ -499,6 +499,11 @@ static int pci_bios_check_devices(struct pci_bus *busses)
     return 0;
 }
 
+
+/****************************************************************
+ * BAR assignment
+ ****************************************************************/
+
 // Setup region bases (given the regions' size and alignment)
 static int pci_bios_init_root_regions(struct pci_bus *bus)
 {
@@ -526,11 +531,6 @@ static int pci_bios_init_root_regions(struct pci_bus *bus)
     return 0;
 }
 
-
-/****************************************************************
- * BAR assignment
- ****************************************************************/
-
 #define PCI_IO_SHIFT            8
 #define PCI_MEMORY_SHIFT        16
 #define PCI_PREF_MEMORY_SHIFT   16
@@ -571,7 +571,7 @@ pci_region_map_one_entry(struct pci_region_entry *entry, u64 addr)
 static void pci_region_map_entries(struct pci_bus *busses, struct pci_region *r)
 {
     struct pci_region_entry *entry = r->list;
-    while(entry) {
+    while (entry) {
         u64 addr = r->base;
         r->base += entry->size;
         if (entry->bar == -1)