x1000/pci: fix coding standards

Always use braces, even on one-line code blocks.

Change-Id: Ic9e60db7f851d2fbee5bfd79cd810df23c0c5db0
Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
This commit is contained in:
Benjamin Walsh 2016-02-17 13:46:43 -05:00 committed by Gerrit Code Review
commit 74cd948ed3
2 changed files with 6 additions and 3 deletions

View file

@ -107,10 +107,12 @@ extern "C" {
static inline int pci_pin2irq(int bus, int dev, int pin)
{
if (bus < 0 || bus > 1)
if (bus < 0 || bus > 1) {
return -1;
if ((pin < PCI_INTA) || (pin > PCI_INTD))
}
if ((pin < PCI_INTA) || (pin > PCI_INTD)) {
return -1;
}
return NUM_STD_IRQS + ((pin - 1 + bus) & 3);
}

View file

@ -398,8 +398,9 @@ int pci_bus_scan(struct pci_dev_info *dev_info)
pci_ctrl_addr.field.bus = lookup.bus;
pci_ctrl_addr.field.device = lookup.dev;
if (pci_dev_scan(pci_ctrl_addr, dev_info))
if (pci_dev_scan(pci_ctrl_addr, dev_info)) {
return 1;
}
if (lookup.info.function != PCI_FUNCTION_ANY) {
lookup.func = lookup.info.function;