Commit 8e512539 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

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

From: Christoph Hellwig <hch@lst.de>

Callers are exported register/unregister handlers so the module is locked in
core by users of said exports.
parent 3dfae718
......@@ -59,9 +59,6 @@ int __init msnd_register(multisound_dev_t *dev)
devs[i] = dev;
++num_devs;
MOD_INC_USE_COUNT;
return 0;
}
......@@ -80,8 +77,6 @@ void msnd_unregister(multisound_dev_t *dev)
devs[i] = NULL;
--num_devs;
MOD_DEC_USE_COUNT;
}
int msnd_get_num_devs(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment