aboutsummaryrefslogtreecommitdiff
path: root/sound/core/seq/seq_system.c
diff options
context:
space:
mode:
authorClemens Ladisch <clemens@ladisch.de>2005-12-12 09:30:43 +0100
committerJaroslav Kysela <perex@suse.cz>2006-01-03 12:30:47 +0100
commit83e8ad6984dccd6d848ac91ba0df379ff968180b (patch)
tree5ae1f379de542b8ede18ab1cc65537b01b21d212 /sound/core/seq/seq_system.c
parent255bd169ab645970f77d3fd7ac800781f96ddccb (diff)
[ALSA] seq: remove struct snd_seq_client_callback
The fields of struct snd_seq_client_callback either aren't used or are always set to the same value, so we can get rid of it altogether. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Diffstat (limited to 'sound/core/seq/seq_system.c')
-rw-r--r--sound/core/seq/seq_system.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sound/core/seq/seq_system.c b/sound/core/seq/seq_system.c
index 86b1cba33c0..c87c883bd92 100644
--- a/sound/core/seq/seq_system.c
+++ b/sound/core/seq/seq_system.c
@@ -120,8 +120,6 @@ static int event_input_timer(struct snd_seq_event * ev, int direct, void *privat
/* register our internal client */
int __init snd_seq_system_client_init(void)
{
-
- struct snd_seq_client_callback callbacks;
struct snd_seq_port_callback pcallbacks;
struct snd_seq_client_info *inf;
struct snd_seq_port_info *port;
@@ -134,14 +132,12 @@ int __init snd_seq_system_client_init(void)
return -ENOMEM;
}
- memset(&callbacks, 0, sizeof(callbacks));
memset(&pcallbacks, 0, sizeof(pcallbacks));
pcallbacks.owner = THIS_MODULE;
pcallbacks.event_input = event_input_timer;
/* register client */
- callbacks.allow_input = callbacks.allow_output = 1;
- sysclient = snd_seq_create_kernel_client(NULL, 0, &callbacks);
+ sysclient = snd_seq_create_kernel_client(NULL, 0);
/* set our name */
inf->client = 0;