diff options
author | Antonio Ospite <ao2@amarulasolutions.com> | 2013-06-21 07:11:48 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-06-21 08:33:05 -0400 |
commit | 3dd446a7e5bb001ec681232ac63a558f5e0509ed (patch) | |
tree | 35a04422851eb401cc8f88e78abd7ee3f8145163 /sound/usb | |
parent | fefe228c5f13809f77e6b2873ffe8bfb006cadd4 (diff) |
ALSA: snd-usb-caiaq: remove the unused snd_card_used variable
The snd_card_used variable is only read but never written, remove it.
Signed-off-by: Antonio Ospite <ao2@amarulasolutions.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb')
-rw-r--r-- | sound/usb/caiaq/device.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/usb/caiaq/device.c b/sound/usb/caiaq/device.c index 48b63ccc78c7..23cf55dbc54e 100644 --- a/sound/usb/caiaq/device.c +++ b/sound/usb/caiaq/device.c | |||
@@ -57,7 +57,6 @@ MODULE_SUPPORTED_DEVICE("{{Native Instruments, RigKontrol2}," | |||
57 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-max */ | 57 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-max */ |
58 | static char* id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* Id for this card */ | 58 | static char* id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* Id for this card */ |
59 | static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable this card */ | 59 | static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable this card */ |
60 | static int snd_card_used[SNDRV_CARDS]; | ||
61 | 60 | ||
62 | module_param_array(index, int, NULL, 0444); | 61 | module_param_array(index, int, NULL, 0444); |
63 | MODULE_PARM_DESC(index, "Index value for the caiaq sound device"); | 62 | MODULE_PARM_DESC(index, "Index value for the caiaq sound device"); |
@@ -388,7 +387,7 @@ static int create_card(struct usb_device *usb_dev, | |||
388 | struct snd_usb_caiaqdev *cdev; | 387 | struct snd_usb_caiaqdev *cdev; |
389 | 388 | ||
390 | for (devnum = 0; devnum < SNDRV_CARDS; devnum++) | 389 | for (devnum = 0; devnum < SNDRV_CARDS; devnum++) |
391 | if (enable[devnum] && !snd_card_used[devnum]) | 390 | if (enable[devnum]) |
392 | break; | 391 | break; |
393 | 392 | ||
394 | if (devnum >= SNDRV_CARDS) | 393 | if (devnum >= SNDRV_CARDS) |