All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] (3/5) remove X25 pre-existing device discovery loop
@ 2004-01-13 19:01 Stephen Hemminger
  0 siblings, 0 replies; only message in thread
From: Stephen Hemminger @ 2004-01-13 19:01 UTC (permalink / raw)
  To: David S. Miller; +Cc: netdev, Henner Eisen, linux-x25

Remove duplicate/conflicting code 
now that netdev_register_notifier replays the device registration events.

diff -Nru a/net/x25/af_x25.c b/net/x25/af_x25.c
--- a/net/x25/af_x25.c	Mon Jan 12 14:22:07 2004
+++ b/net/x25/af_x25.c	Mon Jan 12 14:22:07 2004
@@ -1372,9 +1372,6 @@
 
 static int __init x25_init(void)
 {
-#ifdef MODULE
-	struct net_device *dev;
-#endif /* MODULE */
 	sock_register(&x25_family_ops);
 
 	dev_add_pack(&x25_packet_type);
@@ -1386,23 +1383,7 @@
 #ifdef CONFIG_SYSCTL
 	x25_register_sysctl();
 #endif
-
 	x25_proc_init();
-#ifdef MODULE
-	/*
-	 *	Register any pre existing devices.
-	 */
-	read_lock(&dev_base_lock);
-	for (dev = dev_base; dev; dev = dev->next) {
-		if ((dev->flags & IFF_UP) && (dev->type == ARPHRD_X25
-#if defined(CONFIG_LLC) || defined(CONFIG_LLC_MODULE)
-					   || dev->type == ARPHRD_ETHER
-#endif
-			))
-			x25_link_device_up(dev);
-	}
-	read_unlock(&dev_base_lock);
-#endif /* MODULE */
 	return 0;
 }
 module_init(x25_init);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-01-13 19:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-13 19:01 [PATCH] (3/5) remove X25 pre-existing device discovery loop Stephen Hemminger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.