diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-08-13 12:13:49 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-08-24 14:05:19 -0400 |
commit | 292121dce2af63dab371102097a887de7cf24233 (patch) | |
tree | a43109943f32065f36e80d3ee78293b2678377cd | |
parent | d069a46be8ac745c193f2acc6071d9042b347224 (diff) |
ath9k: remove a bogus WARN_ON
On embedded hardware it's normal to not have a PCI device for the PCI
bridge that the wifi card is attached to. pdev->bus->self will be
NULL in that case. In that case, simply return without emitting an
useless kernel stack trace.
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/ath/ath9k/pci.c | 4 |
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 8bd8e85ece42..d704c8d9bae7 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) | |||
126 | * Both upstream and downstream PCIe components should | 126 | * Both upstream and downstream PCIe components should |
127 | * have the same ASPM settings. | 127 | * have the same ASPM settings. |
128 | */ | 128 | */ |
129 | if (WARN_ON(!parent)) | 129 | if (!parent) |
130 | return; | 130 | return; |
131 | 131 | ||
132 | pos = pci_pcie_cap(parent); | 132 | pos = pci_pcie_cap(parent); |
@@ -137,7 +137,7 @@ static void ath_pci_aspm_init(struct ath_common *common) | |||
137 | return; | 137 | return; |
138 | } | 138 | } |
139 | 139 | ||
140 | if (WARN_ON(!parent)) | 140 | if (!parent) |
141 | return; | 141 | return; |
142 | 142 | ||
143 | pos = pci_pcie_cap(parent); | 143 | pos = pci_pcie_cap(parent); |