提交 54cd1e42 编写于 作者: S Stefan Hajnoczi 提交者: Greg Kroah-Hartman

staging: line6: drop unused line6_index and line6_id arrays

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: NStefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 b430b3db
...@@ -16,20 +16,16 @@ ...@@ -16,20 +16,16 @@
#include "driver.h" #include "driver.h"
#include "audio.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. Initialize the Line6 USB audio system.
*/ */
int line6_init_audio(struct usb_line6 *line6) int line6_init_audio(struct usb_line6 *line6)
{ {
static int dev;
struct snd_card *card; struct snd_card *card;
int err; int err;
err = snd_card_create(line6_index[dev], line6_id[dev], THIS_MODULE, 0, err = snd_card_create(SNDRV_DEFAULT_IDX1, SNDRV_DEFAULT_STR1,
&card); THIS_MODULE, 0, &card);
if (err < 0) if (err < 0)
return err; return err;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册