aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrent Piepho <xyzzy@speakeasy.org>2007-08-24 00:06:35 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-10-09 21:06:36 -0400
commitffb7394d51cf6f60a3753a5cc40613fc9d5c5c96 (patch)
tree6e62edf01172ff9745f7d1d456d588841d516e42
parent05b2723387cb4086535e935ee07cca19086308fc (diff)
V4L/DVB (6084): cx88-alsa: Eliminate snd_cx88_cards
The driver kepts a static global array of snd_card pointers for each card probed, which was never used. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r--drivers/media/video/cx88/cx88-alsa.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/media/video/cx88/cx88-alsa.c b/drivers/media/video/cx88/cx88-alsa.c
index 33dd4cb5e877..ac317fb856e4 100644
--- a/drivers/media/video/cx88/cx88-alsa.c
+++ b/drivers/media/video/cx88/cx88-alsa.c
@@ -95,7 +95,6 @@ typedef struct cx88_audio_dev snd_cx88_card_t;
95static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 95static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */
96static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ 96static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */
97static int enable[SNDRV_CARDS] = {1, [1 ... (SNDRV_CARDS - 1)] = 1}; 97static int enable[SNDRV_CARDS] = {1, [1 ... (SNDRV_CARDS - 1)] = 1};
98static struct snd_card *snd_cx88_cards[SNDRV_CARDS];
99 98
100module_param_array(enable, bool, NULL, 0444); 99module_param_array(enable, bool, NULL, 0444);
101MODULE_PARM_DESC(enable, "Enable cx88x soundcard. default enabled."); 100MODULE_PARM_DESC(enable, "Enable cx88x soundcard. default enabled.");
@@ -759,8 +758,6 @@ static int __devinit cx88_audio_initdev(struct pci_dev *pci,
759 snd_card_free(card); 758 snd_card_free(card);
760 return (err); 759 return (err);
761 } 760 }
762 snd_cx88_cards[devno] = card;
763
764 pci_set_drvdata(pci,card); 761 pci_set_drvdata(pci,card);
765 762
766 devno++; 763 devno++;