drivers/net: Remove pointless checks for NULL prior to calling kfree()

This commit is contained in:
Jesper Juhl 2005-10-28 16:53:13 -04:00 committed by Jeff Garzik
commit b4558ea93d
32 changed files with 90 additions and 174 deletions

View file

@ -754,8 +754,7 @@ islpci_free_memory(islpci_private *priv)
pci_unmap_single(priv->pdev, buf->pci_addr,
buf->size, PCI_DMA_FROMDEVICE);
buf->pci_addr = 0;
if (buf->mem)
kfree(buf->mem);
kfree(buf->mem);
buf->size = 0;
buf->mem = NULL;
}