netdev
[Top] [All Lists]

[patch] remove com20020-isa.c unused variables

To: Jeff Garzik <jgarzik@xxxxxxxxx>
Subject: [patch] remove com20020-isa.c unused variables
From: Adrian Bunk <bunk@xxxxxxxxx>
Date: Sat, 6 Dec 2003 09:57:36 +0100
Cc: netdev@xxxxxxxxxxx, torvalds@xxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx
In-reply-to: <20031205192828.GA15907@gtf.org>
References: <20031205192828.GA15907@gtf.org>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mutt/1.4.1i
Hi Jeff,

your experimental net driver queue patch introduced the following
compile warnings when compiling com20020-isa statically into the kernel:

<--  snip  -->

...
  CC      drivers/net/arcnet/com20020-isa.o
drivers/net/arcnet/com20020-isa.c: In function `com20020isa_setup':
drivers/net/arcnet/com20020-isa.c:189: warning: unused variable `lp'
drivers/net/arcnet/com20020-isa.c:188: warning: unused variable `dev'
...

<--  snip  -->


The fix is trivial (the net driver queue patch removes all uses of 
these variables):


--- linux-2.6.0-test11-full-no-smp/drivers/net/arcnet/com20020-isa.c.old        
2003-12-06 09:51:10.000000000 +0100
+++ linux-2.6.0-test11-full-no-smp/drivers/net/arcnet/com20020-isa.c    
2003-12-06 09:53:41.000000000 +0100
@@ -185,8 +185,6 @@
 #ifndef MODULE
 static int __init com20020isa_setup(char *s)
 {
-       struct net_device *dev;
-       struct arcnet_local *lp;
        int ints[8];
 
        s = get_options(s, 8, ints);



cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


<Prev in Thread] Current Thread [Next in Thread>