Skip to content

Commit

Permalink
[ALSA] typo-fix and snd_assert()-expression-split
Browse files Browse the repository at this point in the history
ALSA Core
This patch corrects a typo in the kerneldocs of snd_info_get_str().
It also splits the expressions of snd_assert() in snd_info_unregister()
into one-expression-per-call for better debugging.

Signed-off-by: Henrik Kretzschmar <henne@nachtwindheim.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Henrik Kretzschmar authored and Jaroslav Kysela committed Jul 28, 2005
1 parent 5b738ba commit 856def8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sound/core/info.c
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ int snd_info_get_line(snd_info_buffer_t * buffer, char *line, int len)
}

/**
* snd_info_get_line - parse a string token
* snd_info_get_str - parse a string token
* @dest: the buffer to store the string token
* @src: the original string
* @len: the max. length of token - 1
Expand Down Expand Up @@ -939,7 +939,8 @@ int snd_info_unregister(snd_info_entry_t * entry)
{
struct proc_dir_entry *root;

snd_assert(entry != NULL && entry->p != NULL, return -ENXIO);
snd_assert(entry != NULL, return -ENXIO);
snd_assert(entry->p != NULL, return -ENXIO);
root = entry->parent == NULL ? snd_proc_root : entry->parent->p;
snd_assert(root, return -ENXIO);
down(&info_mutex);
Expand Down

0 comments on commit 856def8

Please sign in to comment.