Skip to contentSkip to conversation

Remove MOD_DEC_USE_COUNT from i2o_block.c

PATCH New [email protected] 1 participant 1 message Feb 21, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Remove MOD_DEC_USE_COUNT from i2o_block.c

Please go easy on me if this patch is stupid, because it's not really my patch. Someone told me these were removable alltogether since they are deprecated, so I found one of them in John Cherry's compile stats and simply removed it. Please apply in case it's not idiotic. Thanks.

Applies against Linux 2.6.3.

drivers/message/i2o/i2o_block.c renamed from drivers/message/i2o/i2o_block.c.orig +0 -3
@@ -1503,9 +1503,6 @@ void i2ob_del_device(struct i2o_controll
 	 * Decrease usage count for module
 	 */	
 
-	while(i2ob_dev[unit].refcnt--)
-		MOD_DEC_USE_COUNT;
-
 	i2ob_dev[unit].refcnt = 0;
 	
 	i2ob_dev[i].tid = 0;