diff src/alsa/audio.c @ 3054:919ec26c66c3

Do not assign the result of snd_card_next, we do not care about it. Code analysis, unique ID HQvjgU.
author Tony Vroon <chainsaw@gentoo.org>
date Sat, 18 Apr 2009 21:38:16 +0100
parents 8b7a44631121
children a6a57fe6a75c
line wrap: on
line diff
--- a/src/alsa/audio.c	Sat Apr 18 21:28:56 2009 +0100
+++ b/src/alsa/audio.c	Sat Apr 18 21:38:16 2009 +0100
@@ -131,9 +131,9 @@
 
 int alsa_hardware_present(void)
 {
-	gint card = -1, err;
+	gint card = -1;
 
-        if ((err = snd_card_next(&card)) != 0)
+        if ((snd_card_next(&card)) != 0)
                 return 0;
 
         return 1;