]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: line6: drop unused line6_index and line6_id arrays
authorStefan Hajnoczi <stefanha@redhat.com>
Mon, 15 Oct 2012 18:52:27 +0000 (20:52 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Oct 2012 22:50:08 +0000 (15:50 -0700)
The line6 driver does not support 'index' and 'id' module parameters so
there is no need to keep arrays for these values.  Do what other sound
drivers do and use the scalar constants instead of dummy arrays.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/line6/audio.c

index 8e7398393a592d1491aa64867f727ecedce748d5..a92e21f7d55b83bb1b537e48259b1202271699fa 100644 (file)
 #include "driver.h"
 #include "audio.h"
 
-static int line6_index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX;
-static char *line6_id[SNDRV_CARDS] = SNDRV_DEFAULT_STR;
-
 /*
        Initialize the Line6 USB audio system.
 */
 int line6_init_audio(struct usb_line6 *line6)
 {
-       static int dev;
        struct snd_card *card;
        int err;
 
-       err = snd_card_create(line6_index[dev], line6_id[dev], THIS_MODULE, 0,
-                             &card);
+       err = snd_card_create(SNDRV_DEFAULT_IDX1, SNDRV_DEFAULT_STR1,
+                             THIS_MODULE, 0, &card);
        if (err < 0)
                return err;