Skip to content

Commit

Permalink
staging: line6: drop unused line6_index and line6_id arrays
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stefan Hajnoczi authored and Greg Kroah-Hartman committed Oct 22, 2012
1 parent b430b3d commit 54cd1e4
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions drivers/staging/line6/audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,16 @@
#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;

Expand Down

0 comments on commit 54cd1e4

Please sign in to comment.