summaryrefslogtreecommitdiffstats
path: root/drivers/net/wd.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2010-12-21 11:16:08 +0100
committerJoe Perches <joe@perches.com>2010-12-21 11:16:08 +0100
commitb6bc765067ece933cc3dc7f5e95665a89100b1d5 (patch)
treebbf55c2d80e839eb4c0ab23bcbdd656d14b3f5fe /drivers/net/wd.c
parenttg3: Use DEFINE_PCI_DEVICE_TABLE (diff)
downloadlinux-b6bc765067ece933cc3dc7f5e95665a89100b1d5.tar.xz
linux-b6bc765067ece933cc3dc7f5e95665a89100b1d5.zip
drivers/net/*.c: Use static const
Using static const generally increases object text and decreases data size. It also generally decreases overall object size. Signed-off-by: Joe Perches <joe@perches.com>
Diffstat (limited to '')
-rw-r--r--drivers/net/wd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wd.c b/drivers/net/wd.c
index f1549fff0edc..8831a3393ecf 100644
--- a/drivers/net/wd.c
+++ b/drivers/net/wd.c
@@ -275,7 +275,7 @@ static int __init wd_probe1(struct net_device *dev, int ioaddr)
dev->base_addr = ioaddr+WD_NIC_OFFSET;
if (dev->irq < 2) {
- int irqmap[] = {9,3,5,7,10,11,15,4};
+ static const int irqmap[] = {9, 3, 5, 7, 10, 11, 15, 4};
int reg1 = inb(ioaddr+1);
int reg4 = inb(ioaddr+4);
if (ancient || reg1 == 0xff) { /* Ack!! No way to read the IRQ! */