[PATCH 2.6.9 2/5] tlan: get rid of unneeded global vars (rev 2)

DORMANTno replies

From: Stephen Hemminger <hidden>
Date: 2004-10-19 18:19:50

The global variable media_map is never used. And the media table media
can be static.

Signed-off-by: Stephen Hemminger <redacted>

diff -Nru a/drivers/net/tlan.c b/drivers/net/tlan.c
--- a/drivers/net/tlan.c	2004-10-19 11:05:01 -07:00
+++ b/drivers/net/tlan.c	2004-10-19 11:05:01 -07:00
@@ -223,12 +223,10 @@
 static  int tlan_have_pci;
 static  int tlan_have_eisa;
 
-const char *media[] = {
+static const char *media[] = {
 	"10BaseT-HD ", "10BaseT-FD ","100baseTx-HD ", 
 	"100baseTx-FD", "100baseT4", NULL
 };
-
-int media_map[] = { 0x0020, 0x0040, 0x0080, 0x0100, 0x0200,};
 
 static struct board {
 	const char	*deviceLabel;
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help