All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] fix bad indentation in pcie_cap_slot_write_config()
@ 2015-10-25  8:23 Cao jin
  2015-10-26 12:07   ` Cao jin
  2015-10-29  7:45   ` [Qemu-devel] " Michael Tokarev
  0 siblings, 2 replies; 13+ messages in thread
From: Cao jin @ 2015-10-25  8:23 UTC (permalink / raw)
  To: qemu-devel; +Cc: mst

bad indentation conflicts with CODING_STYLE doc

Signed-off-by: Cao jin <caoj.fnst@cn.fujitsu.com>
---
 hw/pci/pcie.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/hw/pci/pcie.c b/hw/pci/pcie.c
index 6e28985..e4bfe91 100644
--- a/hw/pci/pcie.c
+++ b/hw/pci/pcie.c
@@ -413,13 +413,13 @@ void pcie_cap_slot_write_config(PCIDevice *dev,
      */
     if ((sltsta & PCI_EXP_SLTSTA_PDS) && (val & PCI_EXP_SLTCTL_PCC) &&
         ((val & PCI_EXP_SLTCTL_PIC_OFF) == PCI_EXP_SLTCTL_PIC_OFF)) {
-            PCIBus *sec_bus = pci_bridge_get_sec_bus(PCI_BRIDGE(dev));
-            pci_for_each_device(sec_bus, pci_bus_num(sec_bus),
-                                pcie_unplug_device, NULL);
+        PCIBus *sec_bus = pci_bridge_get_sec_bus(PCI_BRIDGE(dev));
+        pci_for_each_device(sec_bus, pci_bus_num(sec_bus),
+                            pcie_unplug_device, NULL);
 
-            pci_word_test_and_clear_mask(exp_cap + PCI_EXP_SLTSTA,
-                                         PCI_EXP_SLTSTA_PDS);
-            pci_word_test_and_set_mask(exp_cap + PCI_EXP_SLTSTA,
+        pci_word_test_and_clear_mask(exp_cap + PCI_EXP_SLTSTA,
+                                     PCI_EXP_SLTSTA_PDS);
+        pci_word_test_and_set_mask(exp_cap + PCI_EXP_SLTSTA,
                                        PCI_EXP_SLTSTA_PDC);
     }
 
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2015-10-29  8:28 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-25  8:23 [Qemu-devel] [PATCH] fix bad indentation in pcie_cap_slot_write_config() Cao jin
2015-10-26 12:07 ` [Qemu-trivial] " Cao jin
2015-10-26 12:07   ` Cao jin
2015-10-26 12:16   ` [Qemu-trivial] " Michael S. Tsirkin
2015-10-26 12:16     ` Michael S. Tsirkin
2015-10-29  7:45 ` [Qemu-trivial] " Michael Tokarev
2015-10-29  7:45   ` [Qemu-devel] " Michael Tokarev
2015-10-29  7:57   ` [Qemu-trivial] " Cao jin
2015-10-29  7:57     ` [Qemu-devel] " Cao jin
2015-10-29  8:07     ` [Qemu-trivial] " Michael Tokarev
2015-10-29  8:07       ` [Qemu-devel] " Michael Tokarev
2015-10-29  8:28       ` [Qemu-trivial] " Cao jin
2015-10-29  8:28         ` [Qemu-devel] " Cao jin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.