diff options
author | Hannes Eder <hannes@hanneseder.net> | 2009-02-14 06:14:04 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-02-17 20:21:13 -0500 |
commit | 5b5103ec2dba07a15861e81cb783dd0fbaed24ed (patch) | |
tree | 892918acdd72bef1c0ed1aafe19310f8e2f46148 /drivers/net/r6040.c | |
parent | d6781f2af8567524f8c95d9907718a6c61fe417d (diff) |
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 <hannes@hanneseder.net>
Acked-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/r6040.c')
-rw-r--r-- | drivers/net/r6040.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/r6040.c b/drivers/net/r6040.c index 3c27a7bfea49..9c95ebe643a3 100644 --- a/drivers/net/r6040.c +++ b/drivers/net/r6040.c | |||
@@ -484,12 +484,12 @@ static int r6040_close(struct net_device *dev) | |||
484 | /* Free Descriptor memory */ | 484 | /* Free Descriptor memory */ |
485 | if (lp->rx_ring) { | 485 | if (lp->rx_ring) { |
486 | pci_free_consistent(pdev, RX_DESC_SIZE, lp->rx_ring, lp->rx_ring_dma); | 486 | pci_free_consistent(pdev, RX_DESC_SIZE, lp->rx_ring, lp->rx_ring_dma); |
487 | lp->rx_ring = 0; | 487 | lp->rx_ring = NULL; |
488 | } | 488 | } |
489 | 489 | ||
490 | if (lp->tx_ring) { | 490 | if (lp->tx_ring) { |
491 | pci_free_consistent(pdev, TX_DESC_SIZE, lp->tx_ring, lp->tx_ring_dma); | 491 | pci_free_consistent(pdev, TX_DESC_SIZE, lp->tx_ring, lp->tx_ring_dma); |
492 | lp->tx_ring = 0; | 492 | lp->tx_ring = NULL; |
493 | } | 493 | } |
494 | 494 | ||
495 | return 0; | 495 | return 0; |