PCI: cpqphp: Format if-statement code block correctly
authorKrzysztof Wilczyński <kw@linux.com>
Wed, 13 Oct 2021 01:14:12 +0000 (01:14 +0000)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 13 Oct 2021 01:48:44 +0000 (20:48 -0500)
The code block related to the if-statement in cpqhp_set_irq() is
somewhat awkwardly formatted making the code hard to read.

Make it readable.  No change to functionality intended.

Link: https://lore.kernel.org/r/20211013011412.1110829-1-kw@linux.com
Signed-off-by: Krzysztof Wilczyński <kw@linux.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/hotplug/cpqphp_pci.c

index 1b2b3f3b648bca17d637a7b265ad502b91134452..9038039ad6db5b5f30fa6cabe399814df0b74e19 100644 (file)
@@ -189,8 +189,10 @@ int cpqhp_set_irq(u8 bus_num, u8 dev_num, u8 int_pin, u8 irq_num)
                /* This should only be for x86 as it sets the Edge Level
                 * Control Register
                 */
-               outb((u8) (temp_word & 0xFF), 0x4d0); outb((u8) ((temp_word &
-               0xFF00) >> 8), 0x4d1); rc = 0; }
+               outb((u8)(temp_word & 0xFF), 0x4d0);
+               outb((u8)((temp_word & 0xFF00) >> 8), 0x4d1);
+               rc = 0;
+       }
 
        return rc;
 }