summaryrefslogtreecommitdiffstats
path: root/drivers/pci/hotplug/cpcihp_zt5550.c
diff options
context:
space:
mode:
authorQuentin Lambert2014-09-07 20:02:47 +0200
committerBjorn Helgaas2014-09-24 15:49:20 +0200
commit656f978f9af9d8d77436e8159f51f7aa1e673309 (patch)
treed1cad3653ac41062a854eb0bc0f25fc03767f766 /drivers/pci/hotplug/cpcihp_zt5550.c
parentPCI: Add space before open parenthesis (diff)
downloadkernel-qcow2-linux-656f978f9af9d8d77436e8159f51f7aa1e673309.tar.gz
kernel-qcow2-linux-656f978f9af9d8d77436e8159f51f7aa1e673309.tar.xz
kernel-qcow2-linux-656f978f9af9d8d77436e8159f51f7aa1e673309.zip
PCI: Remove unnecessary curly braces
Remove curly braces in simple "if" cases. No functional change. Signed-off-by: Quentin Lambert <lambert.quentin@gmail.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/hotplug/cpcihp_zt5550.c')
-rw-r--r--drivers/pci/hotplug/cpcihp_zt5550.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/pci/hotplug/cpcihp_zt5550.c b/drivers/pci/hotplug/cpcihp_zt5550.c
index e6180201819e..cfd01e93e137 100644
--- a/drivers/pci/hotplug/cpcihp_zt5550.c
+++ b/drivers/pci/hotplug/cpcihp_zt5550.c
@@ -182,9 +182,9 @@ static int zt5550_hc_enable_irq(void)
{
u8 reg;
- if (hc_dev == NULL) {
+ if (hc_dev == NULL)
return -ENODEV;
- }
+
reg = readb(csr_int_mask);
reg = reg & ~ENUM_INT_MASK;
writeb(reg, csr_int_mask);
@@ -195,9 +195,8 @@ static int zt5550_hc_disable_irq(void)
{
u8 reg;
- if (hc_dev == NULL) {
+ if (hc_dev == NULL)
return -ENODEV;
- }
reg = readb(csr_int_mask);
reg = reg | ENUM_INT_MASK;
@@ -210,9 +209,9 @@ static int zt5550_hc_init_one (struct pci_dev *pdev, const struct pci_device_id
int status;
status = zt5550_hc_config(pdev);
- if (status != 0) {
+ if (status != 0)
return status;
- }
+
dbg("returned from zt5550_hc_config");
memset(&zt5550_hpc, 0, sizeof (struct cpci_hp_controller));