Commit 20de98af authored by Michael S. Tsirkin's avatar Michael S. Tsirkin
Browse files

pcie: coding style tweak



- whitespace fix
- unnecessary != 0 in a condition

Cc: Marcel Apfelbaum <marcel.a@redhat.com>
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent 554f802d
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -353,11 +353,9 @@ void pcie_cap_slot_reset(PCIDevice *dev)
                               PCI_EXP_SLTCTL_AIC_OFF);

    if (dev->cap_present & QEMU_PCIE_SLTCAP_PCP) {
        bool populated;
        uint16_t pic;

        /* Downstream ports enforce device number 0. */
        populated = (pci_bridge_get_sec_bus(PCI_BRIDGE(dev))->devices[0] != NULL);
        bool populated = pci_bridge_get_sec_bus(PCI_BRIDGE(dev))->devices[0];
        uint16_t pic;

        if (populated) {
            pci_word_test_and_clear_mask(exp_cap + PCI_EXP_SLTCTL,