lkml.org 
[lkml]   [2003]   [Jun]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[TRIVIAL][PATCH][2.5] Remove warning due to comparison in drivers/net/pcnet32.c
(already sent to the trivial patch monkey, forgot to Cc LKML)

drivers/net/pcnet32.c: In function `pcnet32_init_ring':
drivers/net/pcnet32.c:1006: warning: comparison between pointer and integer

Index: linux-2.5/drivers/net/pcnet32.c
===================================================================
RCS file: /home/cvs/linux-2.5/drivers/net/pcnet32.c,v
retrieving revision 1.31
diff -u -p -B -r1.31 pcnet32.c
--- linux-2.5/drivers/net/pcnet32.c 30 May 2003 17:46:04 -0000 1.31
+++ linux-2.5/drivers/net/pcnet32.c 12 Jun 2003 14:54:29 -0000
@@ -1003,7 +1003,7 @@ pcnet32_init_ring(struct net_device *dev
skb_reserve (rx_skbuff, 2);
}

- if (lp->rx_dma_addr[i] == NULL)
+ if (lp->rx_dma_addr[i] == 0)
lp->rx_dma_addr[i] = pci_map_single(lp->pci_dev, rx_skbuff->tail, rx_skbuff->len, PCI_DMA_FROMDEVICE);
lp->rx_ring[i].base = (u32)le32_to_cpu(lp->rx_dma_addr[i]);
lp->rx_ring[i].buf_length = le16_to_cpu(-PKT_BUF_SZ);
--
function.linuxpower.ca
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:36    [W:0.046 / U:0.292 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site