sound/pcmcia/vx/vxpocket.c: fix an if() condition
PATCH 1/1 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 <[email protected]>
---
sound/pcmcia/vx/vxpocket.c renamed from sound/pcmcia/vx/vxpocket.c.old +1 -1
@@ -297,7 +297,7 @@ static int vxpocket_probe(struct pcmcia_/* 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 ) {