netdev
[Top] [All Lists]

[PATH] atm/clip device discovery on init not needed

To: "David S. Miller" <davem@xxxxxxxxxx>
Subject: [PATH] atm/clip device discovery on init not needed
From: Stephen Hemminger <shemminger@xxxxxxxx>
Date: Wed, 14 Jan 2004 16:43:38 -0800
Cc: netdev@xxxxxxxxxxx, chas williams <chas@xxxxxxxxxxxxxxxx>, linux-atm-general@xxxxxxxxxxxxxxxxxxxxx
In-reply-to: <20040113163631.1a9c1a59.davem@xxxxxxxxxx>
Organization: Open Source Development Lab
References: <20040113105843.0d1351cb.shemminger@xxxxxxxx> <20040113163631.1a9c1a59.davem@xxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
Atm/clip driver was doing device list walk to find interfaces.
This will no longer be needed now that events are replayed when
register_netdevice_notifier is called (see earlier patch)

diff -Nru a/net/atm/clip.c b/net/atm/clip.c
--- a/net/atm/clip.c    Wed Jan 14 16:27:05 2004
+++ b/net/atm/clip.c    Wed Jan 14 16:27:05 2004
@@ -754,9 +754,6 @@
                printk(KERN_ERR "register_netdevice_notifier failed\n");
        if (register_inetaddr_notifier(&clip_inet_notifier))
                printk(KERN_ERR "register_inetaddr_notifier failed\n");
-       for (dev = clip_devs; dev; dev = PRIV(dev)->next)
-               if (dev->flags & IFF_UP)
-                       (void) to_atmarpd(act_up,PRIV(dev)->number,0);
        return 0;
 }
 

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