mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-05 13:30:00 -05:00
Fix CHECK_ENUM() in simple.c
simple.c: In function ‘snd_mixer_selem_is_enumerated’: simple.c:881: warning: suggest parentheses around operand of ‘!’ or change ‘&’ to ‘&&’ or ‘!’ to ‘~’ Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
30f59937b1
commit
3440994f68
1 changed files with 1 additions and 1 deletions
|
|
@ -103,7 +103,7 @@ int snd_mixer_selem_register(snd_mixer_t *mixer,
|
|||
}
|
||||
|
||||
#define CHECK_ENUM(xelem) \
|
||||
if (!((sm_selem_t *)(elem)->private_data)->caps & (SM_CAP_PENUM|SM_CAP_CENUM)) \
|
||||
if (!(((sm_selem_t *)(elem)->private_data)->caps & (SM_CAP_PENUM|SM_CAP_CENUM))) \
|
||||
return -EINVAL;
|
||||
|
||||
#define COND_CAPS(xelem, what) \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue