diff options
-rw-r--r-- | drivers/net/wireless/ath/ath9k/pci.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath9k/pci.c b/drivers/net/wireless/ath/ath9k/pci.c index 685a8cebb468..17862ccc3400 100644 --- a/drivers/net/wireless/ath/ath9k/pci.c +++ b/drivers/net/wireless/ath/ath9k/pci.c | |||
@@ -160,8 +160,9 @@ static int ath_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) | |||
160 | 160 | ||
161 | hw = ieee80211_alloc_hw(sizeof(struct ath_wiphy) + | 161 | hw = ieee80211_alloc_hw(sizeof(struct ath_wiphy) + |
162 | sizeof(struct ath_softc), &ath9k_ops); | 162 | sizeof(struct ath_softc), &ath9k_ops); |
163 | if (hw == NULL) { | 163 | if (!hw) { |
164 | printk(KERN_ERR "ath_pci: no memory for ieee80211_hw\n"); | 164 | dev_err(&pdev->dev, "no memory for ieee80211_hw\n"); |
165 | ret = -ENOMEM; | ||
165 | goto bad2; | 166 | goto bad2; |
166 | } | 167 | } |
167 | 168 | ||