mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-02 09:01:48 -05:00
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>
This commit is contained in:
parent
52160de21e
commit
86e27cdbf1
1 changed files with 0 additions and 1 deletions
|
|
@ -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 |
|
if (event->data.elem.mask & (SNDRV_CTL_EVENT_MASK_VALUE |
|
||||||
SNDRV_CTL_EVENT_MASK_INFO)) {
|
SNDRV_CTL_EVENT_MASK_INFO)) {
|
||||||
elem = snd_hctl_find_elem(hctl, &event->data.elem.id);
|
elem = snd_hctl_find_elem(hctl, &event->data.elem.id);
|
||||||
assert(elem);
|
|
||||||
if (!elem)
|
if (!elem)
|
||||||
return -ENOENT;
|
return -ENOENT;
|
||||||
res = snd_hctl_elem_throw_event(elem, event->data.elem.mask &
|
res = snd_hctl_elem_throw_event(elem, event->data.elem.mask &
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue