aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/net/wireless/ath/ath9k/pci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath9k/pci.c b/drivers/net/wireless/ath/ath9k/pci.c
index 8bd8e85ece4..d704c8d9bae 100644
--- a/drivers/net/wireless/ath/ath9k/pci.c
+++ b/drivers/net/wireless/ath/ath9k/pci.c
@@ -126,7 +126,7 @@ static void ath_pci_aspm_init(struct ath_common *common)
* Both upstream and downstream PCIe components should
* have the same ASPM settings.
*/
- if (WARN_ON(!parent))
+ if (!parent)
return;
pos = pci_pcie_cap(parent);
@@ -137,7 +137,7 @@ static void ath_pci_aspm_init(struct ath_common *common)
return;
}
- if (WARN_ON(!parent))
+ if (!parent)
return;
pos = pci_pcie_cap(parent);