[ALSA] Remove unneeded read/write_size fields in proc text ops
Remove unneeded read/write_size fields in proc text ops. snd_info_set_text_ops() is fixed, too. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:

committed by
Jaroslav Kysela

parent
7e4eeec8a3
commit
bf850204a7
@@ -291,7 +291,6 @@ register_proc(void)
|
||||
|
||||
entry->content = SNDRV_INFO_CONTENT_TEXT;
|
||||
entry->private_data = NULL;
|
||||
entry->c.text.read_size = 1024;
|
||||
entry->c.text.read = info_read;
|
||||
if (snd_info_register(entry) < 0) {
|
||||
snd_info_free_entry(entry);
|
||||
|
@@ -555,7 +555,6 @@ static int __init alsa_seq_device_init(void)
|
||||
if (info_entry == NULL)
|
||||
return -ENOMEM;
|
||||
info_entry->content = SNDRV_INFO_CONTENT_TEXT;
|
||||
info_entry->c.text.read_size = 2048;
|
||||
info_entry->c.text.read = snd_seq_device_info;
|
||||
if (snd_info_register(info_entry) < 0) {
|
||||
snd_info_free_entry(info_entry);
|
||||
|
@@ -34,8 +34,8 @@ static struct snd_info_entry *timer_entry;
|
||||
|
||||
|
||||
static struct snd_info_entry * __init
|
||||
create_info_entry(char *name, int size, void (*read)(struct snd_info_entry *,
|
||||
struct snd_info_buffer *))
|
||||
create_info_entry(char *name, void (*read)(struct snd_info_entry *,
|
||||
struct snd_info_buffer *))
|
||||
{
|
||||
struct snd_info_entry *entry;
|
||||
|
||||
@@ -43,7 +43,6 @@ create_info_entry(char *name, int size, void (*read)(struct snd_info_entry *,
|
||||
if (entry == NULL)
|
||||
return NULL;
|
||||
entry->content = SNDRV_INFO_CONTENT_TEXT;
|
||||
entry->c.text.read_size = size;
|
||||
entry->c.text.read = read;
|
||||
if (snd_info_register(entry) < 0) {
|
||||
snd_info_free_entry(entry);
|
||||
@@ -55,11 +54,11 @@ create_info_entry(char *name, int size, void (*read)(struct snd_info_entry *,
|
||||
/* create all our /proc entries */
|
||||
int __init snd_seq_info_init(void)
|
||||
{
|
||||
queues_entry = create_info_entry("queues", 512 + (256 * SNDRV_SEQ_MAX_QUEUES),
|
||||
queues_entry = create_info_entry("queues",
|
||||
snd_seq_info_queues_read);
|
||||
clients_entry = create_info_entry("clients", 512 + (256 * SNDRV_SEQ_MAX_CLIENTS),
|
||||
clients_entry = create_info_entry("clients",
|
||||
snd_seq_info_clients_read);
|
||||
timer_entry = create_info_entry("timer", 1024, snd_seq_info_timer_read);
|
||||
timer_entry = create_info_entry("timer", snd_seq_info_timer_read);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user