From: Adrian Bunk Date: Wed, 2 May 2007 10:07:55 +0000 (+0200) Subject: [ALSA] sound/pcmcia/vx/vxpocket.c: fix an if() condition X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=27fe0f4b985d8427d93ff6c9457e198ab8ffe035;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git [ALSA] sound/pcmcia/vx/vxpocket.c: fix an if() condition It seems noone ever tried to use this driver with more than one device. Signed-off-by: Adrian Bunk Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela --- diff --git a/sound/pcmcia/vx/vxpocket.c b/sound/pcmcia/vx/vxpocket.c index 363bcb5f08e6..c57e127d9ccb 100644 --- a/sound/pcmcia/vx/vxpocket.c +++ b/sound/pcmcia/vx/vxpocket.c @@ -297,7 +297,7 @@ static int vxpocket_probe(struct pcmcia_device *p_dev) /* find an empty slot from the card list */ for (i = 0; i < SNDRV_CARDS; i++) { - if (! card_alloc & (1 << i)) + if (!(card_alloc & (1 << i))) break; } if (i >= SNDRV_CARDS) {