From: Takashi Iwai Date: Sun, 8 Nov 2009 08:26:23 +0000 (+0100) Subject: Fix CHECK_ENUM() in simple.c X-Git-Tag: v1.0.22~6 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=3440994f68de419395475c79703f57ee1d5409c3;p=alsa-lib.git 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 --- diff --git a/src/mixer/simple.c b/src/mixer/simple.c index 39790b2e..606fc3d8 100644 --- a/src/mixer/simple.c +++ b/src/mixer/simple.c @@ -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) \