diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2005-12-12 11:30:43 +0300 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-01-03 14:30:47 +0300 |
commit | 83e8ad6984dccd6d848ac91ba0df379ff968180b (patch) | |
tree | 5ae1f379de542b8ede18ab1cc65537b01b21d212 /sound/core/seq/seq_dummy.c | |
parent | 255bd169ab645970f77d3fd7ac800781f96ddccb (diff) | |
download | linux-83e8ad6984dccd6d848ac91ba0df379ff968180b.tar.xz |
[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_dummy.c')
-rw-r--r-- | sound/core/seq/seq_dummy.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sound/core/seq/seq_dummy.c b/sound/core/seq/seq_dummy.c index 8101a475e3e5..e7344b6332da 100644 --- a/sound/core/seq/seq_dummy.c +++ b/sound/core/seq/seq_dummy.c @@ -193,7 +193,6 @@ create_port(int idx, int type) static int __init register_client(void) { - struct snd_seq_client_callback cb; struct snd_seq_client_info cinfo; struct snd_seq_dummy_port *rec1, *rec2; int i; @@ -204,10 +203,7 @@ register_client(void) } /* create client */ - memset(&cb, 0, sizeof(cb)); - cb.allow_input = 1; - cb.allow_output = 1; - my_client = snd_seq_create_kernel_client(NULL, SNDRV_SEQ_CLIENT_DUMMY, &cb); + my_client = snd_seq_create_kernel_client(NULL, SNDRV_SEQ_CLIENT_DUMMY); if (my_client < 0) return my_client; |