diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2005-12-12 03:30:43 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-01-03 06:30:47 -0500 |
commit | 83e8ad6984dccd6d848ac91ba0df379ff968180b (patch) | |
tree | 5ae1f379de542b8ede18ab1cc65537b01b21d212 /sound/core/seq/seq_dummy.c | |
parent | 255bd169ab645970f77d3fd7ac800781f96ddccb (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_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) | |||
193 | static int __init | 193 | static int __init |
194 | register_client(void) | 194 | register_client(void) |
195 | { | 195 | { |
196 | struct snd_seq_client_callback cb; | ||
197 | struct snd_seq_client_info cinfo; | 196 | struct snd_seq_client_info cinfo; |
198 | struct snd_seq_dummy_port *rec1, *rec2; | 197 | struct snd_seq_dummy_port *rec1, *rec2; |
199 | int i; | 198 | int i; |
@@ -204,10 +203,7 @@ register_client(void) | |||
204 | } | 203 | } |
205 | 204 | ||
206 | /* create client */ | 205 | /* create client */ |
207 | memset(&cb, 0, sizeof(cb)); | 206 | my_client = snd_seq_create_kernel_client(NULL, SNDRV_SEQ_CLIENT_DUMMY); |
208 | cb.allow_input = 1; | ||
209 | cb.allow_output = 1; | ||
210 | my_client = snd_seq_create_kernel_client(NULL, SNDRV_SEQ_CLIENT_DUMMY, &cb); | ||
211 | if (my_client < 0) | 207 | if (my_client < 0) |
212 | return my_client; | 208 | return my_client; |
213 | 209 | ||