mwl8k: Remove unnecessary alloc/OOM messages
alloc failures already get standardized OOM messages and a dump_stack. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
0d61c9177c
commit
4fe238b732
|
@ -1149,7 +1149,6 @@ static int mwl8k_rxq_init(struct ieee80211_hw *hw, int index)
|
||||||
|
|
||||||
rxq->buf = kcalloc(MWL8K_RX_DESCS, sizeof(*rxq->buf), GFP_KERNEL);
|
rxq->buf = kcalloc(MWL8K_RX_DESCS, sizeof(*rxq->buf), GFP_KERNEL);
|
||||||
if (rxq->buf == NULL) {
|
if (rxq->buf == NULL) {
|
||||||
wiphy_err(hw->wiphy, "failed to alloc RX skbuff list\n");
|
|
||||||
pci_free_consistent(priv->pdev, size, rxq->rxd, rxq->rxd_dma);
|
pci_free_consistent(priv->pdev, size, rxq->rxd, rxq->rxd_dma);
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
}
|
||||||
|
@ -1442,7 +1441,6 @@ static int mwl8k_txq_init(struct ieee80211_hw *hw, int index)
|
||||||
|
|
||||||
txq->skb = kcalloc(MWL8K_TX_DESCS, sizeof(*txq->skb), GFP_KERNEL);
|
txq->skb = kcalloc(MWL8K_TX_DESCS, sizeof(*txq->skb), GFP_KERNEL);
|
||||||
if (txq->skb == NULL) {
|
if (txq->skb == NULL) {
|
||||||
wiphy_err(hw->wiphy, "failed to alloc TX skbuff list\n");
|
|
||||||
pci_free_consistent(priv->pdev, size, txq->txd, txq->txd_dma);
|
pci_free_consistent(priv->pdev, size, txq->txd, txq->txd_dma);
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue