From: Amir Noam <amir.noam@intel.com>
To: bonding-devel@lists.sourceforge.net, netdev@oss.sgi.com
Cc: jgarzik@pobox.com
Subject: [PATCH 1/3] [bonding 2.4] Get rid of MOD_*_USE_COUNT, and use C99 initializers
Date: Mon, 15 Sep 2003 12:00:19 +0300 [thread overview]
Message-ID: <200309151200.19968.amir.noam@intel.com> (raw)
diff -Nuarp a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c
--- a/drivers/net/bonding/bond_main.c 2003-09-15 11:39:34.000000000 +0300
+++ b/drivers/net/bonding/bond_main.c 2003-09-15 11:39:36.000000000 +0300
@@ -980,8 +980,6 @@ static int bond_open(struct net_device *
add_timer(alb_timer);
}
- MOD_INC_USE_COUNT;
-
if (miimon > 0) { /* link check interval, in milliseconds. */
init_timer(timer);
timer->expires = jiffies + (miimon * HZ / 1000);
@@ -1055,7 +1053,6 @@ static int bond_close(struct net_device
bond_alb_deinitialize(bond);
}
- MOD_DEC_USE_COUNT;
return 0;
}
@@ -3770,7 +3767,7 @@ static int bond_netdev_event(struct noti
}
static struct notifier_block bond_netdev_notifier = {
- notifier_call: bond_netdev_event,
+ .notifier_call = bond_netdev_event,
};
static void bond_deinit(struct net_device *dev)
next reply other threads:[~2003-09-15 9:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-15 9:00 Amir Noam [this message]
2003-09-20 18:20 ` [PATCH 1/3] [bonding 2.4] Get rid of MOD_*_USE_COUNT, and use C99 initializers Jeff Garzik
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=200309151200.19968.amir.noam@intel.com \
--to=amir.noam@intel.com \
--cc=bonding-devel@lists.sourceforge.net \
--cc=jgarzik@pobox.com \
--cc=netdev@oss.sgi.com \
/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;
as well as URLs for NNTP newsgroup(s).