diff options
author | Takashi Iwai <tiwai@suse.de> | 2006-04-28 09:13:41 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-06-22 15:33:09 -0400 |
commit | bf850204a71a97eb5a6afaf27263bb667f9cab0a (patch) | |
tree | 2d917d9886a3488f1524699374d546d8bf6af88e /sound/core/init.c | |
parent | 7e4eeec8a30fa9e00cac67a37ca9ddf6cbdb79c4 (diff) |
[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>
Diffstat (limited to 'sound/core/init.c')
-rw-r--r-- | sound/core/init.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sound/core/init.c b/sound/core/init.c index b145d17ba3b2..2ff0e5e90865 100644 --- a/sound/core/init.c +++ b/sound/core/init.c | |||
@@ -69,7 +69,6 @@ static inline int init_info_for_card(struct snd_card *card) | |||
69 | snd_printd("unable to create card entry\n"); | 69 | snd_printd("unable to create card entry\n"); |
70 | return err; | 70 | return err; |
71 | } | 71 | } |
72 | entry->c.text.read_size = PAGE_SIZE; | ||
73 | entry->c.text.read = snd_card_id_read; | 72 | entry->c.text.read = snd_card_id_read; |
74 | if (snd_info_register(entry) < 0) { | 73 | if (snd_info_register(entry) < 0) { |
75 | snd_info_free_entry(entry); | 74 | snd_info_free_entry(entry); |
@@ -592,7 +591,6 @@ int __init snd_card_info_init(void) | |||
592 | entry = snd_info_create_module_entry(THIS_MODULE, "cards", NULL); | 591 | entry = snd_info_create_module_entry(THIS_MODULE, "cards", NULL); |
593 | if (! entry) | 592 | if (! entry) |
594 | return -ENOMEM; | 593 | return -ENOMEM; |
595 | entry->c.text.read_size = PAGE_SIZE; | ||
596 | entry->c.text.read = snd_card_info_read; | 594 | entry->c.text.read = snd_card_info_read; |
597 | if (snd_info_register(entry) < 0) { | 595 | if (snd_info_register(entry) < 0) { |
598 | snd_info_free_entry(entry); | 596 | snd_info_free_entry(entry); |
@@ -603,7 +601,6 @@ int __init snd_card_info_init(void) | |||
603 | #ifdef MODULE | 601 | #ifdef MODULE |
604 | entry = snd_info_create_module_entry(THIS_MODULE, "modules", NULL); | 602 | entry = snd_info_create_module_entry(THIS_MODULE, "modules", NULL); |
605 | if (entry) { | 603 | if (entry) { |
606 | entry->c.text.read_size = PAGE_SIZE; | ||
607 | entry->c.text.read = snd_card_module_info_read; | 604 | entry->c.text.read = snd_card_module_info_read; |
608 | if (snd_info_register(entry) < 0) | 605 | if (snd_info_register(entry) < 0) |
609 | snd_info_free_entry(entry); | 606 | snd_info_free_entry(entry); |