diff options
author | Joe Perches <joe@perches.com> | 2010-12-21 05:16:08 -0500 |
---|---|---|
committer | Joe Perches <joe@perches.com> | 2010-12-21 05:16:08 -0500 |
commit | b6bc765067ece933cc3dc7f5e95665a89100b1d5 (patch) | |
tree | bbf55c2d80e839eb4c0ab23bcbdd656d14b3f5fe /drivers/net/hp.c | |
parent | 895950c2a6565d9eefda4a38b00fa28537e39fcb (diff) |
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 'drivers/net/hp.c')
-rw-r--r-- | drivers/net/hp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/hp.c b/drivers/net/hp.c index d15d2f2ba78e..ef2014375e62 100644 --- a/drivers/net/hp.c +++ b/drivers/net/hp.c | |||
@@ -162,9 +162,9 @@ static int __init hp_probe1(struct net_device *dev, int ioaddr) | |||
162 | 162 | ||
163 | /* Snarf the interrupt now. Someday this could be moved to open(). */ | 163 | /* Snarf the interrupt now. Someday this could be moved to open(). */ |
164 | if (dev->irq < 2) { | 164 | if (dev->irq < 2) { |
165 | int irq_16list[] = { 11, 10, 5, 3, 4, 7, 9, 0}; | 165 | static const int irq_16list[] = { 11, 10, 5, 3, 4, 7, 9, 0}; |
166 | int irq_8list[] = { 7, 5, 3, 4, 9, 0}; | 166 | static const int irq_8list[] = { 7, 5, 3, 4, 9, 0}; |
167 | int *irqp = wordmode ? irq_16list : irq_8list; | 167 | const int *irqp = wordmode ? irq_16list : irq_8list; |
168 | do { | 168 | do { |
169 | int irq = *irqp; | 169 | int irq = *irqp; |
170 | if (request_irq (irq, NULL, 0, "bogus", NULL) != -EBUSY) { | 170 | if (request_irq (irq, NULL, 0, "bogus", NULL) != -EBUSY) { |