From 3440994f68de419395475c79703f57ee1d5409c3 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Sun, 8 Nov 2009 09:26:23 +0100 Subject: [PATCH] Fix CHECK_ENUM() in simple.c MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/mixer/simple.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) \ -- 2.47.1