netdev
[Top] [All Lists]

[patch 2.6.10-rc1 5/5] dscc4: removal of unneeded variable

To: jgarzik@xxxxxxxxx
Subject: [patch 2.6.10-rc1 5/5] dscc4: removal of unneeded variable
From: Francois Romieu <romieu@xxxxxxxxxxxxx>
Date: Fri, 14 Jan 2005 01:15:16 +0100
Cc: netdev@xxxxxxxxxxx
In-reply-to: <20050114001318.GD2219@electric-eye.fr.zoreil.com>
References: <20050114000732.GA28864@electric-eye.fr.zoreil.com> <20050114000941.GA2219@electric-eye.fr.zoreil.com> <20050114001054.GB2219@electric-eye.fr.zoreil.com> <20050114001212.GC2219@electric-eye.fr.zoreil.com> <20050114001318.GD2219@electric-eye.fr.zoreil.com>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mutt/1.4.1i
Removal of unneeded variable and more spaces for my eyes.

Signed-off-by: Francois Romieu <romieu@xxxxxxxxxxxxx>

diff -puN drivers/net/wan/dscc4.c~dscc4-040 drivers/net/wan/dscc4.c
--- linux-2.6.11-rc1/drivers/net/wan/dscc4.c~dscc4-040  2005-01-14 
00:54:59.425357736 +0100
+++ linux-2.6.11-rc1-fr/drivers/net/wan/dscc4.c 2005-01-14 00:55:22.581586543 
+0100
@@ -691,7 +691,7 @@ static void dscc4_free1(struct pci_dev *
        root = ppriv->root;
 
        for (i = 0; i < dev_per_card; i++)
-               unregister_hdlc_device(dscc4_to_dev(&root[i]));
+               unregister_hdlc_device(dscc4_to_dev(root + i));
 
        pci_set_drvdata(pdev, NULL);
 
@@ -706,7 +706,6 @@ static int __devinit dscc4_init_one(stru
 {
        struct dscc4_pci_priv *priv;
        struct dscc4_dev_priv *dpriv;
-       static int cards_found = 0;
        void __iomem *ioaddr;
        int i, rc;
 
@@ -812,8 +811,6 @@ static int __devinit dscc4_init_one(stru
 
        writel(0xff200001, ioaddr + GCMDR);
 
-       cards_found++;
-
        rc = 0;
 out:
        return rc;
@@ -966,7 +963,7 @@ static int dscc4_found1(struct pci_dev *
 err_unregister:
        while (i-- > 0) {
                dscc4_release_ring(root + i);
-               unregister_hdlc_device(dscc4_to_dev(&root[i]));
+               unregister_hdlc_device(dscc4_to_dev(root + i));
        }
        kfree(ppriv);
        i = dev_per_card;

_

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