return;
 
        parent = pdev->bus->self;
+       if (!parent)
+               return;
 
        if (ah->btcoex_hw.scheme != ATH_BTCOEX_CFG_NONE) {
                /* Bluetooth coexistance requires disabling ASPM. */
                 * Both upstream and downstream PCIe components should
                 * have the same ASPM settings.
                 */
-               if (!parent)
-                       return;
-
                pos = pci_pcie_cap(parent);
                pci_read_config_byte(parent, pos + PCI_EXP_LNKCTL, &aspm);
                aspm &= ~(PCIE_LINK_STATE_L0S | PCIE_LINK_STATE_L1);
                return;
        }
 
-       if (!parent)
-               return;
-
        pos = pci_pcie_cap(parent);
        pci_read_config_byte(parent, pos +  PCI_EXP_LNKCTL, &aspm);
        if (aspm & (PCIE_LINK_STATE_L0S | PCIE_LINK_STATE_L1)) {