From: Takashi Iwai Date: Tue, 9 Jun 2009 02:45:18 +0000 (+0200) Subject: Fix breakage of snd_card_load() X-Git-Tag: v1.0.21~35 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=4d2ba6a4608c9794c5b90f6a87a4bd033a02f26e;p=alsa-lib.git Fix breakage of snd_card_load() Fixed the breakage of snd_card_load() for secondary and later cards due to changes in snd_card_load1(). Signed-off-by: Takashi Iwai --- diff --git a/src/control/cards.c b/src/control/cards.c index 6208c73e..0bb8f861 100644 --- a/src/control/cards.c +++ b/src/control/cards.c @@ -82,7 +82,7 @@ static int snd_card_load1(int card) */ int snd_card_load(int card) { - return !!(snd_card_load1(card) == 0); + return !!(snd_card_load1(card) >= 0); } /**