[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>
这个提交包含在:
Clemens Ladisch
2005-12-12 09:30:43 +01:00
提交者 Jaroslav Kysela
父节点 255bd169ab
当前提交 83e8ad6984
修改 13 个文件,包含 14 行新增75 行删除

查看文件

@@ -934,7 +934,6 @@ static int snd_trident_synth_new_device(struct snd_seq_device *dev)
{
struct snd_trident *trident;
int client, i;
struct snd_seq_client_callback callbacks;
struct snd_seq_client_info cinfo;
struct snd_seq_port_subscribe sub;
struct snd_simple_ops *simpleops;
@@ -947,11 +946,8 @@ static int snd_trident_synth_new_device(struct snd_seq_device *dev)
trident->synth.seq_client = -1;
/* allocate new client */
memset(&callbacks, 0, sizeof(callbacks));
callbacks.private_data = trident;
callbacks.allow_output = callbacks.allow_input = 1;
client = trident->synth.seq_client =
snd_seq_create_kernel_client(trident->card, 1, &callbacks);
snd_seq_create_kernel_client(trident->card, 1);
if (client < 0)
return client;