Skip to contentSkip to conversation

Get rid of MOD_*_USE_COUNT, and use C99 initializers

PATCH In review Amir Noam 2 participants 2 messages Sep 15, 2003 – Sep 20, 2003

Subsystems (3)
lore
Share & tools
lore

Amir Noam

author
#0 lore raw

PATCH 1/3 Get rid of MOD_*_USE_COUNT, and use C99 initializers

drivers/net/bonding/bond_main.c +1 -4
diff -Nuarp a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c
@@ -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)