aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/wireless/prism54/islpci_eth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/prism54/islpci_eth.c b/drivers/net/wireless/prism54/islpci_eth.c
index c255d9c6a5f1..9b5ee3419287 100644
--- a/drivers/net/wireless/prism54/islpci_eth.c
+++ b/drivers/net/wireless/prism54/islpci_eth.c
@@ -50,7 +50,7 @@ islpci_eth_cleanup_transmit(islpci_private *priv,
50 50
51 /* check for holes in the arrays caused by multi fragment frames 51 /* check for holes in the arrays caused by multi fragment frames
52 * searching for the last fragment of a frame */ 52 * searching for the last fragment of a frame */
53 if (priv->pci_map_tx_address[index] != (dma_addr_t) NULL) { 53 if (priv->pci_map_tx_address[index]) {
54 /* entry is the last fragment of a frame 54 /* entry is the last fragment of a frame
55 * free the skb structure and unmap pci memory */ 55 * free the skb structure and unmap pci memory */
56 skb = priv->data_low_tx[index]; 56 skb = priv->data_low_tx[index];
@@ -450,7 +450,7 @@ islpci_eth_receive(islpci_private *priv)
450 pci_map_single(priv->pdev, (void *) skb->data, 450 pci_map_single(priv->pdev, (void *) skb->data,
451 MAX_FRAGMENT_SIZE_RX + 2, 451 MAX_FRAGMENT_SIZE_RX + 2,
452 PCI_DMA_FROMDEVICE); 452 PCI_DMA_FROMDEVICE);
453 if (unlikely(priv->pci_map_rx_address[index] == (dma_addr_t) NULL)) { 453 if (unlikely(!priv->pci_map_rx_address[index])) {
454 /* error mapping the buffer to device accessable memory address */ 454 /* error mapping the buffer to device accessable memory address */
455 DEBUG(SHOW_ERROR_MESSAGES, 455 DEBUG(SHOW_ERROR_MESSAGES,
456 "Error mapping DMA address\n"); 456 "Error mapping DMA address\n");