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/pci | |
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/pci')
-rw-r--r-- | sound/pci/trident/trident_synth.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sound/pci/trident/trident_synth.c b/sound/pci/trident/trident_synth.c index a49682ef3e3e..e31055a4bd25 100644 --- a/sound/pci/trident/trident_synth.c +++ b/sound/pci/trident/trident_synth.c | |||
@@ -934,7 +934,6 @@ static int snd_trident_synth_new_device(struct snd_seq_device *dev) | |||
934 | { | 934 | { |
935 | struct snd_trident *trident; | 935 | struct snd_trident *trident; |
936 | int client, i; | 936 | int client, i; |
937 | struct snd_seq_client_callback callbacks; | ||
938 | struct snd_seq_client_info cinfo; | 937 | struct snd_seq_client_info cinfo; |
939 | struct snd_seq_port_subscribe sub; | 938 | struct snd_seq_port_subscribe sub; |
940 | struct snd_simple_ops *simpleops; | 939 | struct snd_simple_ops *simpleops; |
@@ -947,11 +946,8 @@ static int snd_trident_synth_new_device(struct snd_seq_device *dev) | |||
947 | trident->synth.seq_client = -1; | 946 | trident->synth.seq_client = -1; |
948 | 947 | ||
949 | /* allocate new client */ | 948 | /* allocate new client */ |
950 | memset(&callbacks, 0, sizeof(callbacks)); | ||
951 | callbacks.private_data = trident; | ||
952 | callbacks.allow_output = callbacks.allow_input = 1; | ||
953 | client = trident->synth.seq_client = | 949 | client = trident->synth.seq_client = |
954 | snd_seq_create_kernel_client(trident->card, 1, &callbacks); | 950 | snd_seq_create_kernel_client(trident->card, 1); |
955 | if (client < 0) | 951 | if (client < 0) |
956 | return client; | 952 | return client; |
957 | 953 | ||