Messages in this thread Patch in this message | | | Date | Fri, 7 May 2004 12:44:06 +0200 | From | Christoph Hellwig <> | Subject | [PATCH] kill useless MOD_{INC,DEC}_USE_COUNT in sound/oss/msnd.c |
| |
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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |