OSDN Git Service

hctl: Remove a useless assert
authorMartin Sandsmark <martin.sandsmark@kde.org>
Thu, 5 Jul 2012 07:40:07 +0000 (09:40 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 5 Jul 2012 08:09:06 +0000 (10:09 +0200)
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>
src/control/hcontrol.c

index 8ffc434..ee1d907 100644 (file)
@@ -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 &