[PATCH] kill useless MOD_{INC,DEC}_USE_COUNT in sound/oss/msnd.c

From: Christoph Hellwig
Date: Fri May 07 2004 - 05:46:35 EST


callers are exported register/unregister handlers so the module is
locked in core by users of said exports.


--- 1.7/sound/oss/msnd.c Thu Feb 19 04:42:59 2004
+++ edited/sound/oss/msnd.c Mon May 3 13:30:22 2004
@@ -59,9 +59,6 @@

devs[i] = dev;
++num_devs;
-
- MOD_INC_USE_COUNT;
-
return 0;
}

@@ -80,8 +77,6 @@

devs[i] = NULL;
--num_devs;
-
- MOD_DEC_USE_COUNT;
}

int msnd_get_num_devs(void)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/