提交 c03e3fe9 编写于 作者: C Christophe JAILLET 提交者: Kalle Valo

ipw2x00: Remove a memory allocation failure log message

Axe a memory allocation failure log message. This message is useless and
incorrect (vmalloc is not used here for the memory allocation)

This has been like that since the very beginning of this driver in
commit 43f66a6c ("Add ipw2200 wireless driver.")
Signed-off-by: NChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200424154527.27309-1-christophe.jaillet@wanadoo.fr
上级 fd5d7819
...@@ -3770,10 +3770,8 @@ static int ipw_queue_tx_init(struct ipw_priv *priv, ...@@ -3770,10 +3770,8 @@ static int ipw_queue_tx_init(struct ipw_priv *priv,
struct pci_dev *dev = priv->pci_dev; struct pci_dev *dev = priv->pci_dev;
q->txb = kmalloc_array(count, sizeof(q->txb[0]), GFP_KERNEL); q->txb = kmalloc_array(count, sizeof(q->txb[0]), GFP_KERNEL);
if (!q->txb) { if (!q->txb)
IPW_ERROR("vmalloc for auxiliary BD structures failed\n");
return -ENOMEM; return -ENOMEM;
}
q->bd = q->bd =
pci_alloc_consistent(dev, sizeof(q->bd[0]) * count, &q->q.dma_addr); pci_alloc_consistent(dev, sizeof(q->bd[0]) * count, &q->q.dma_addr);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册