diff options
author | Martin Sandsmark <martin.sandsmark@kde.org> | 2012-07-05 09:40:07 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-07-05 10:09:06 +0200 |
commit | 86e27cdbf119440101a850e1b44baebfefe863ca (patch) | |
tree | 65ee9f2293214c70b1058ef4f4c6cb17e560e078 | |
parent | 52160de21ee6a710a746b0881d9581994d039123 (diff) | |
download | alsa-lib-86e27cdbf119440101a850e1b44baebfefe863ca.tar.gz |
hctl: Remove a useless assert
The case where the element is unavailable (for example gone away since
the event was created) is handled beneath.
See also bug 5471.
https://bugtrack.alsa-project.org/alsa-bug/view.php?id=5471
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | src/control/hcontrol.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/control/hcontrol.c b/src/control/hcontrol.c index 8ffc434f..ee1d9079 100644 --- a/src/control/hcontrol.c +++ b/src/control/hcontrol.c @@ -761,7 +761,6 @@ static int snd_hctl_handle_event(snd_hctl_t *hctl, snd_ctl_event_t *event) if (event->data.elem.mask & (SNDRV_CTL_EVENT_MASK_VALUE | SNDRV_CTL_EVENT_MASK_INFO)) { elem = snd_hctl_find_elem(hctl, &event->data.elem.id); - assert(elem); if (!elem) return -ENOENT; res = snd_hctl_elem_throw_event(elem, event->data.elem.mask & |