aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/tg3.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/tg3.c')
-rw-r--r--drivers/net/tg3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c
index a9f1640884b1..db606b603884 100644
--- a/drivers/net/tg3.c
+++ b/drivers/net/tg3.c
@@ -12675,7 +12675,7 @@ static int __devinit tg3_init_one(struct pci_dev *pdev,
12675 tg3reg_len = pci_resource_len(pdev, 2); 12675 tg3reg_len = pci_resource_len(pdev, 2);
12676 12676
12677 tp->aperegs = ioremap_nocache(tg3reg_base, tg3reg_len); 12677 tp->aperegs = ioremap_nocache(tg3reg_base, tg3reg_len);
12678 if (tp->aperegs == 0UL) { 12678 if (!tp->aperegs) {
12679 printk(KERN_ERR PFX "Cannot map APE registers, " 12679 printk(KERN_ERR PFX "Cannot map APE registers, "
12680 "aborting.\n"); 12680 "aborting.\n");
12681 err = -ENOMEM; 12681 err = -ENOMEM;