From: Christoph Hellwig <hch@lst.de>
To: akpm@osdl.org
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] kill useless MOD_{INC,DEC}_USE_COUNT in sound/oss/msnd.c
Date: Fri, 7 May 2004 12:44:06 +0200 [thread overview]
Message-ID: <20040507104406.GB10873@lst.de> (raw)
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)
reply other threads:[~2004-05-07 10:44 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040507104406.GB10873@lst.de \
--to=hch@lst.de \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®