From: Hannes Eder Date: Sat, 14 Feb 2009 11:14:04 +0000 (+0000) Subject: drivers/net/r6040.c: fix sparse warning: Using plain integer as NULL pointer X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=5b5103ec2dba07a15861e81cb783dd0fbaed24ed;p=linux-2.6-omap-h63xx.git drivers/net/r6040.c: fix sparse warning: Using plain integer as NULL pointer Fix this sparse warnings: drivers/net/r6040.c:487:31: warning: Using plain integer as NULL pointer drivers/net/r6040.c:492:31: warning: Using plain integer as NULL pointer Signed-off-by: Hannes Eder Acked-by: Florian Fainelli Signed-off-by: David S. Miller --- diff --git a/drivers/net/r6040.c b/drivers/net/r6040.c index 3c27a7bfea4..9c95ebe643a 100644 --- a/drivers/net/r6040.c +++ b/drivers/net/r6040.c @@ -484,12 +484,12 @@ static int r6040_close(struct net_device *dev) /* Free Descriptor memory */ if (lp->rx_ring) { pci_free_consistent(pdev, RX_DESC_SIZE, lp->rx_ring, lp->rx_ring_dma); - lp->rx_ring = 0; + lp->rx_ring = NULL; } if (lp->tx_ring) { pci_free_consistent(pdev, TX_DESC_SIZE, lp->tx_ring, lp->tx_ring_dma); - lp->tx_ring = 0; + lp->tx_ring = NULL; } return 0;