From 74cd948ed3fb51564c8f59c1237d91594d4bbca2 Mon Sep 17 00:00:00 2001 From: Benjamin Walsh Date: Wed, 17 Feb 2016 13:46:43 -0500 Subject: [PATCH] x1000/pci: fix coding standards Always use braces, even on one-line code blocks. Change-Id: Ic9e60db7f851d2fbee5bfd79cd810df23c0c5db0 Signed-off-by: Benjamin Walsh --- arch/x86/soc/quark_x1000/soc.h | 6 ++++-- drivers/pci/pci.c | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/arch/x86/soc/quark_x1000/soc.h b/arch/x86/soc/quark_x1000/soc.h index 0141c4222fa..39a417df743 100644 --- a/arch/x86/soc/quark_x1000/soc.h +++ b/arch/x86/soc/quark_x1000/soc.h @@ -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); } diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index 5e06be6572d..6106b1e2eb7 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -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;