diff options
author | Peter Hagervall <hager@cs.umu.se> | 2005-09-16 17:01:03 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-09-16 17:01:03 -0700 |
commit | 22abe310bc4b0c684fd3716af6b6116ff1011707 (patch) | |
tree | 0b8c822da0fb5379174a95e596430deb6d033f31 /drivers | |
parent | a8f39143ac67ffa2e26ce48aaac6bf5dc7dae95f (diff) | |
download | linux-stable-22abe310bc4b0c684fd3716af6b6116ff1011707.tar.gz linux-stable-22abe310bc4b0c684fd3716af6b6116ff1011707.tar.bz2 linux-stable-22abe310bc4b0c684fd3716af6b6116ff1011707.zip |
[TG3]: Sparse fixes for tg3
Change 0 to NULL where appropriate.
Signed-off-by: Peter Hagervall <hager@cs.umu.se>
Acked-by: Jeff Garzik <jgarzik@pobox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/tg3.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c index 52eae9f096e2..06b02c59d90b 100644 --- a/drivers/net/tg3.c +++ b/drivers/net/tg3.c @@ -9534,7 +9534,7 @@ static int __devinit tg3_get_invariants(struct tg3 *tp) tp->write32_rx_mbox = tg3_write_indirect_mbox; iounmap(tp->regs); - tp->regs = 0; + tp->regs = NULL; pci_read_config_word(tp->pdev, PCI_COMMAND, &pci_cmd); pci_cmd &= ~PCI_COMMAND_MEMORY; @@ -10682,7 +10682,7 @@ static int __devinit tg3_init_one(struct pci_dev *pdev, err_out_iounmap: if (tp->regs) { iounmap(tp->regs); - tp->regs = 0; + tp->regs = NULL; } err_out_free_dev: @@ -10707,7 +10707,7 @@ static void __devexit tg3_remove_one(struct pci_dev *pdev) unregister_netdev(dev); if (tp->regs) { iounmap(tp->regs); - tp->regs = 0; + tp->regs = NULL; } free_netdev(dev); pci_release_regions(pdev); |