PCI/MSI: Remove unnecessary braces around single statements
authorJiang Liu <[email protected]>
Thu, 6 Nov 2014 14:20:31 +0000 (22:20 +0800)
committerThomas Gleixner <[email protected]>
Sun, 23 Nov 2014 12:01:45 +0000 (13:01 +0100)
Per Documentation/CodingStyle, don't use braces around single statements.

Signed-off-by: Jiang Liu <[email protected]>
Acked-by: Bjorn Helgaas <[email protected]>
Cc: Bjorn Helgaas <[email protected]>
Cc: Grant Likely <[email protected]>
Cc: Marc Zyngier <[email protected]>
Cc: Yingjoe Chen <[email protected]>
Cc: Yijing Wang <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
drivers/pci/msi.c

index 6c1c1b9665aa87750dcd4bbde9ccbeeaab2f239c..f1eb873eeaa6fdb9bdf376f3d864b9b3920883e4 100644 (file)
@@ -254,9 +254,8 @@ void default_restore_msi_irqs(struct pci_dev *dev)
 {
        struct msi_desc *entry;
 
-       list_for_each_entry(entry, &dev->msi_list, list) {
+       list_for_each_entry(entry, &dev->msi_list, list)
                default_restore_msi_irq(dev, entry->irq);
-       }
 }
 
 void __read_msi_msg(struct msi_desc *entry, struct msi_msg *msg)
@@ -461,9 +460,8 @@ static void __pci_restore_msix_state(struct pci_dev *dev)
                                PCI_MSIX_FLAGS_ENABLE | PCI_MSIX_FLAGS_MASKALL);
 
        arch_restore_msi_irqs(dev);
-       list_for_each_entry(entry, &dev->msi_list, list) {
+       list_for_each_entry(entry, &dev->msi_list, list)
                msix_mask_irq(entry, entry->masked);
-       }
 
        msix_clear_and_set_ctrl(dev, PCI_MSIX_FLAGS_MASKALL, 0);
 }
@@ -507,9 +505,8 @@ static int populate_msi_sysfs(struct pci_dev *pdev)
        int count = 0;
 
        /* Determine how many msi entries we have */
-       list_for_each_entry(entry, &pdev->msi_list, list) {
+       list_for_each_entry(entry, &pdev->msi_list, list)
                ++num_msi;
-       }
        if (!num_msi)
                return 0;