aboutsummaryrefslogtreecommitdiff
path: root/src/arch/x86/pirq_routing.c
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2016-08-21 17:37:15 +0200
committerMartin Roth <martinroth@google.com>2016-08-28 18:48:30 +0200
commitdbf30678ee658fedca68a75277cd5c005d9833ef (patch)
treeec920ccfdf7583cbf4721a781ad361bacd7a44d7 /src/arch/x86/pirq_routing.c
parentcbe7464c623d148c96974f0ce8724ead0ad5478d (diff)
src/arch: Add required space before opening parenthesis '('
Change-Id: I8a44a58506d7cf5ebc9fe7ac4f2b46f9544ba61a Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/16287 Tested-by: build bot (Jenkins) Reviewed-by: Omar Pakker Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/arch/x86/pirq_routing.c')
-rw-r--r--src/arch/x86/pirq_routing.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/arch/x86/pirq_routing.c b/src/arch/x86/pirq_routing.c
index 4d9311427c..f758dbb572 100644
--- a/src/arch/x86/pirq_routing.c
+++ b/src/arch/x86/pirq_routing.c
@@ -110,14 +110,14 @@ static u8 pirq_get_next_free_irq(u8* pirq, u16 bitmap)
/* And assume we have not yet routed it */
int already_routed = 0;
/* Have we already routed it ? */
- for(link = 0; link < CONFIG_MAX_PIRQ_LINKS; link++) {
+ for (link = 0; link < CONFIG_MAX_PIRQ_LINKS; link++) {
if (pirq[link] == irq) {
already_routed = 1;
break;
}
}
/* If it's not yet routed, use it */
- if(!already_routed)
+ if (!already_routed)
break;
/* But if it was already routed, try the next one */
continue;
@@ -179,7 +179,7 @@ static void pirq_route_irqs(unsigned long addr)
pirq_tbl->slots[i].devfn >> 3, irq_slot);
}
- for(i = 0; i < CONFIG_MAX_PIRQ_LINKS; i++)
+ for (i = 0; i < CONFIG_MAX_PIRQ_LINKS; i++)
printk(BIOS_DEBUG, "PIRQ%c: %d\n", i + 'A', pirq[i]);
pirq_assign_irqs(pirq);