From: Jean Tourrilhes <jt@bougret.hpl.hp.com>
To: "David S. Miller" <davem@redhat.com>,
Linux kernel mailing list <linux-kernel@vger.kernel.org>
Subject: [PATCH 2.6 IrDA] Remove net notifier
Date: Mon, 9 Feb 2004 17:10:52 -0800 [thread overview]
Message-ID: <20040210011052.GD673@bougret.hpl.hp.com> (raw)
ir262_notifier.diff :
~~~~~~~~~~~~~~~~~~~
<Patch from Stephen Hemminger>
o [FEATURE] remove unused code : device notifier handler.
diff -u -p linux/net/irda/irsyms.d7.c linux/net/irda/irsyms.c
--- linux/net/irda/irsyms.d7.c Mon Feb 9 15:46:55 2004
+++ linux/net/irda/irsyms.c Mon Feb 9 15:47:05 2004
@@ -193,45 +193,6 @@ static struct packet_type irda_packet_ty
};
/*
- * Function irda_device_event (this, event, ptr)
- *
- * Called when a device is taken up or down
- *
- */
-static int irda_device_event(struct notifier_block *this, unsigned long event,
- void *ptr)
-{
- struct net_device *dev = (struct net_device *) ptr;
-
- /* Reject non IrDA devices */
- if (dev->type != ARPHRD_IRDA)
- return NOTIFY_DONE;
-
- switch (event) {
- case NETDEV_UP:
- IRDA_DEBUG(3, "%s(), NETDEV_UP\n", __FUNCTION__);
- /* irda_dev_device_up(dev); */
- break;
- case NETDEV_DOWN:
- IRDA_DEBUG(3, "%s(), NETDEV_DOWN\n", __FUNCTION__);
- /* irda_kill_by_device(dev); */
- /* irda_rt_device_down(dev); */
- /* irda_dev_device_down(dev); */
- break;
- default:
- break;
- }
-
- return NOTIFY_DONE;
-}
-
-static struct notifier_block irda_dev_notifier = {
- irda_device_event,
- NULL,
- 0
-};
-
-/*
* Function irda_notify_init (notify)
*
* Used for initializing the notify structure
@@ -272,9 +233,6 @@ int __init irda_init(void)
/* Add IrDA packet type (Start receiving packets) */
dev_add_pack(&irda_packet_type);
- /* Notifier for Interface changes */
- register_netdevice_notifier(&irda_dev_notifier);
-
/* External APIs */
#ifdef CONFIG_PROC_FS
irda_proc_register();
@@ -307,9 +265,6 @@ void __exit irda_cleanup(void)
/* Remove IrDA packet type (stop receiving packets) */
dev_remove_pack(&irda_packet_type);
-
- /* Stop receiving interfaces notifications */
- unregister_netdevice_notifier(&irda_dev_notifier);
/* Remove higher layers */
irsock_cleanup();
reply other threads:[~2004-02-10 1:12 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040210011052.GD673@bougret.hpl.hp.com \
--to=jt@bougret.hpl.hp.com \
--cc=davem@redhat.com \
--cc=jt@hpl.hp.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®