]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] namespace pollution in cosa driver
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 13 Jan 2003 12:13:42 +0000 (04:13 -0800)
committerLinus Torvalds <torvalds@penguin.transmeta.com>
Mon, 13 Jan 2003 12:13:42 +0000 (04:13 -0800)
From:  Arnd Bergmann <arnd@bergmann-dalldorf.de>

  Variables named 'io' and 'dma' should not be global

drivers/net/wan/cosa.c

index dbcbebe706fe8423183ea89894acce7b395b9075..6639f31f53bffa15b06b64a78be328abb241f003 100644 (file)
@@ -227,8 +227,8 @@ static int io[MAX_CARDS+1]  = { 0x220, 0x228, 0x210, 0x218, 0, };
 /* NOTE: DMA is not autoprobed!!! */
 static int dma[MAX_CARDS+1] = { 1, 7, 1, 7, 1, 7, 1, 7, 0, };
 #else
-int io[MAX_CARDS+1]  = { 0, };
-int dma[MAX_CARDS+1] = { 0, };
+static int io[MAX_CARDS+1];
+static int dma[MAX_CARDS+1];
 #endif
 /* IRQ can be safely autoprobed */
 static int irq[MAX_CARDS+1] = { -1, -1, -1, -1, -1, -1, 0, };