[PATCH] Linux-2.2.23 drivers/net/lance.c unused variable

From: Thomas Cort (tcort@cort.ws)
Date: Sat Dec 07 2002 - 09:36:20 EST


Trivial patch to remove unused variable "int i" from
static int lance_close(struct device *dev) in
drivers/net/lance.c. I checked 2.5.50 and this variable is _not_
present. Kernel compiles and works fine with the following patch:

/** SNIP **/

--- /usr/src/linux/drivers/net/lance.c Sun Mar 25 16:37:34 2001
+++ /usr/src/linux/drivers/net/lance.c Sat Dec 7 13:14:18 2002
@@ -1174,7 +1174,6 @@
 {
        int ioaddr = dev->base_addr;
        struct lance_private *lp = (struct lance_private *)dev->priv;
- int i;

        dev->start = 0;
        dev->tbusy = 1;

/** SNIP **/

Please apply the patch to the next version of the 2.2 Kernel.

-Thomas Cort <tcort@cort.ws>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Dec 07 2002 - 22:00:30 EST