diff options
Diffstat (limited to 'sound/core')
-rw-r--r-- | sound/core/info.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sound/core/info.c b/sound/core/info.c index 5e122bbe7c92..7f8bdf7b0058 100644 --- a/sound/core/info.c +++ b/sound/core/info.c | |||
@@ -702,7 +702,7 @@ int snd_info_get_line(snd_info_buffer_t * buffer, char *line, int len) | |||
702 | } | 702 | } |
703 | 703 | ||
704 | /** | 704 | /** |
705 | * snd_info_get_line - parse a string token | 705 | * snd_info_get_str - parse a string token |
706 | * @dest: the buffer to store the string token | 706 | * @dest: the buffer to store the string token |
707 | * @src: the original string | 707 | * @src: the original string |
708 | * @len: the max. length of token - 1 | 708 | * @len: the max. length of token - 1 |
@@ -939,7 +939,8 @@ int snd_info_unregister(snd_info_entry_t * entry) | |||
939 | { | 939 | { |
940 | struct proc_dir_entry *root; | 940 | struct proc_dir_entry *root; |
941 | 941 | ||
942 | snd_assert(entry != NULL && entry->p != NULL, return -ENXIO); | 942 | snd_assert(entry != NULL, return -ENXIO); |
943 | snd_assert(entry->p != NULL, return -ENXIO); | ||
943 | root = entry->parent == NULL ? snd_proc_root : entry->parent->p; | 944 | root = entry->parent == NULL ? snd_proc_root : entry->parent->p; |
944 | snd_assert(root, return -ENXIO); | 945 | snd_assert(root, return -ENXIO); |
945 | down(&info_mutex); | 946 | down(&info_mutex); |