diff options
author | Michael Opdenacker <michael@free-electrons.com> | 2009-06-24 17:05:09 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-07-05 22:16:07 -0400 |
commit | 6f5bec195839dba3ca0ab8a7a53861e679109c0b (patch) | |
tree | 2ca131d03f517fdfe275acbc166a27782b217eef /drivers | |
parent | 6ed106549d17474ca17a16057f4c0ed4eba5a7ca (diff) |
Minor code cleanup in drivers/net/r6040.c
Replaced '0' by 'bar' in the probe function.
The 'bar' variable was already set to '0' and is already
used in pci_iomap(). This is cleaner and improves code
consistency.
Signed-off-by: Michael Opdenacker <michael@free-electrons.com>
Acked-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-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 ed63d23a6452..b3197e96f323 100644 --- a/drivers/net/r6040.c +++ b/drivers/net/r6040.c | |||
@@ -1112,13 +1112,13 @@ static int __devinit r6040_init_one(struct pci_dev *pdev, | |||
1112 | } | 1112 | } |
1113 | 1113 | ||
1114 | /* IO Size check */ | 1114 | /* IO Size check */ |
1115 | if (pci_resource_len(pdev, 0) < io_size) { | 1115 | if (pci_resource_len(pdev, bar) < io_size) { |
1116 | printk(KERN_ERR DRV_NAME ": Insufficient PCI resources, aborting\n"); | 1116 | printk(KERN_ERR DRV_NAME ": Insufficient PCI resources, aborting\n"); |
1117 | err = -EIO; | 1117 | err = -EIO; |
1118 | goto err_out; | 1118 | goto err_out; |
1119 | } | 1119 | } |
1120 | 1120 | ||
1121 | pioaddr = pci_resource_start(pdev, 0); /* IO map base address */ | 1121 | pioaddr = pci_resource_start(pdev, bar); /* IO map base address */ |
1122 | pci_set_master(pdev); | 1122 | pci_set_master(pdev); |
1123 | 1123 | ||
1124 | dev = alloc_etherdev(sizeof(struct r6040_private)); | 1124 | dev = alloc_etherdev(sizeof(struct r6040_private)); |