mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-01 22:58:49 -04:00
mixer: Remove redundant CHECK_ENUM() from snd_mixer_selem_is_enum*()
The functions to check whether the element is an enum don't need the extra check of the type. It should return simply 0 or 1 without error. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
947d208076
commit
2ab86d96c9
1 changed files with 0 additions and 2 deletions
|
|
@ -889,7 +889,6 @@ int snd_mixer_selem_is_enumerated(snd_mixer_elem_t *elem)
|
|||
int snd_mixer_selem_is_enum_playback(snd_mixer_elem_t *elem)
|
||||
{
|
||||
CHECK_BASIC(elem);
|
||||
CHECK_ENUM(elem);
|
||||
return sm_selem_ops(elem)->is(elem, SM_PLAY, SM_OPS_IS_ENUMERATED, 1);
|
||||
}
|
||||
|
||||
|
|
@ -901,7 +900,6 @@ int snd_mixer_selem_is_enum_playback(snd_mixer_elem_t *elem)
|
|||
int snd_mixer_selem_is_enum_capture(snd_mixer_elem_t *elem)
|
||||
{
|
||||
CHECK_BASIC(elem);
|
||||
CHECK_ENUM(elem);
|
||||
return sm_selem_ops(elem)->is(elem, SM_CAPT, SM_OPS_IS_ENUMERATED, 1);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue