diff options
author | Takashi Iwai <tiwai@suse.de> | 2005-10-10 05:51:55 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2005-11-04 07:17:54 -0500 |
commit | 93f2e37840a9a7c3693ca6961fe6ad46b250f3b9 (patch) | |
tree | 66cfaa7602ec0541f667a55f8de69a42df75db87 /sound/core/misc.c | |
parent | 07799e756c76ecd52cb01a812ba48b7d8ac67633 (diff) |
[ALSA] Make snd_task_name() module local
Modules: ALSA Core,ALSA<-OSS emulation
Remove a global function snd_task_name(), and move it local
to snd-pcm-oss module.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core/misc.c')
-rw-r--r-- | sound/core/misc.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/sound/core/misc.c b/sound/core/misc.c index 1a81fe4df218..11a7675b719b 100644 --- a/sound/core/misc.c +++ b/sound/core/misc.c | |||
@@ -25,17 +25,6 @@ | |||
25 | #include <linux/time.h> | 25 | #include <linux/time.h> |
26 | #include <sound/core.h> | 26 | #include <sound/core.h> |
27 | 27 | ||
28 | int snd_task_name(struct task_struct *task, char *name, size_t size) | ||
29 | { | ||
30 | unsigned int idx; | ||
31 | |||
32 | snd_assert(task != NULL && name != NULL && size >= 2, return -EINVAL); | ||
33 | for (idx = 0; idx < sizeof(task->comm) && idx + 1 < size; idx++) | ||
34 | name[idx] = task->comm[idx]; | ||
35 | name[idx] = '\0'; | ||
36 | return 0; | ||
37 | } | ||
38 | |||
39 | #ifdef CONFIG_SND_VERBOSE_PRINTK | 28 | #ifdef CONFIG_SND_VERBOSE_PRINTK |
40 | void snd_verbose_printk(const char *file, int line, const char *format, ...) | 29 | void snd_verbose_printk(const char *file, int line, const char *format, ...) |
41 | { | 30 | { |