OSDN Git Service

ALSA: hda - sound/pci/hda/hda_codec.c: fix warning
authorAndrew Morton <akpm@linux-foundation.org>
Thu, 14 Apr 2011 22:06:13 +0000 (15:06 -0700)
committerTakashi Iwai <tiwai@suse.de>
Fri, 15 Apr 2011 06:41:22 +0000 (08:41 +0200)
sound/pci/hda/hda_codec.c: In function 'snd_hda_get_connections':
sound/pci/hda/hda_codec.c:332: warning: unused variable 'j'

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_codec.c

index 11ead15..2b60193 100644 (file)
@@ -329,7 +329,7 @@ int snd_hda_get_connections(struct hda_codec *codec, hda_nid_t nid,
                             hda_nid_t *conn_list, int max_conns)
 {
        struct snd_array *array = &codec->conn_lists;
-       int i, j, len, old_used;
+       int i, len, old_used;
        hda_nid_t list[HDA_MAX_CONNECTIONS];
 
        /* look up the cached results */