patch-1.3.39 linux/drivers/net/dummy.c

Next file: linux/drivers/net/e2100.c
Previous file: linux/drivers/net/depca.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.38/linux/drivers/net/dummy.c linux/drivers/net/dummy.c
@@ -164,13 +164,8 @@
 
 void cleanup_module(void)
 {
-	if (MOD_IN_USE)
-		printk("dummy: device busy, remove delayed\n");
-	else
-	{
-		unregister_netdev(&dev_dummy);
-		kfree(dev_dummy.priv);
-		dev_dummy.priv = NULL;
-	}
+	unregister_netdev(&dev_dummy);
+	kfree(dev_dummy.priv);
+	dev_dummy.priv = NULL;
 }
 #endif /* MODULE */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this