]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Fix CHECK_ENUM() in simple.c
authorTakashi Iwai <tiwai@suse.de>
Sun, 8 Nov 2009 08:26:23 +0000 (09:26 +0100)
committerTakashi Iwai <tiwai@suse.de>
Sun, 8 Nov 2009 08:26:59 +0000 (09:26 +0100)
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>
src/mixer/simple.c

index 39790b2e05cbbbebaa8558816ec20b98f2fa70db..606fc3d8c72c652ed97ae2b43e02d8e18c072e7e 100644 (file)
@@ -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) \