ipw2x00: Remove a memory allocation failure log message
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Fri, 24 Apr 2020 15:45:27 +0000 (17:45 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 6 May 2020 08:31:49 +0000 (11:31 +0300)
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 43f66a6ce8da ("Add ipw2200 wireless driver.")

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200424154527.27309-1-christophe.jaillet@wanadoo.fr
drivers/net/wireless/intel/ipw2x00/ipw2200.c

index 923be37..e9e686a 100644 (file)
@@ -3770,10 +3770,8 @@ static int ipw_queue_tx_init(struct ipw_priv *priv,
        struct pci_dev *dev = priv->pci_dev;
 
        q->txb = kmalloc_array(count, sizeof(q->txb[0]), GFP_KERNEL);
-       if (!q->txb) {
-               IPW_ERROR("vmalloc for auxiliary BD structures failed\n");
+       if (!q->txb)
                return -ENOMEM;
-       }
 
        q->bd =
            pci_alloc_consistent(dev, sizeof(q->bd[0]) * count, &q->q.dma_addr);