changeset 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 a3734dd60d7a
children eb7348ab56d2
files src/alsa/audio.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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;