diff options
author | Trent Piepho <xyzzy@speakeasy.org> | 2007-08-23 21:06:35 -0700 |
---|---|---|
committer | Trent Piepho <xyzzy@speakeasy.org> | 2007-08-23 21:06:35 -0700 |
commit | 90a08471201250a55f584ca6b7b17548260c2c33 (patch) | |
tree | ee2b790b67531e7e0ca265ee544efea56bc4cd5f /linux/drivers | |
parent | c869dbf83bf10c1f1c98dfa8fcd57685b680e634 (diff) | |
download | mediapointer-dvb-s2-90a08471201250a55f584ca6b7b17548260c2c33.tar.gz mediapointer-dvb-s2-90a08471201250a55f584ca6b7b17548260c2c33.tar.bz2 |
cx88-alsa: Eliminate snd_cx88_cards
From: Trent Piepho <xyzzy@speakeasy.org>
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>
Diffstat (limited to 'linux/drivers')
-rw-r--r-- | linux/drivers/media/video/cx88/cx88-alsa.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/linux/drivers/media/video/cx88/cx88-alsa.c b/linux/drivers/media/video/cx88/cx88-alsa.c index 2a865e8d1..1482762bd 100644 --- a/linux/drivers/media/video/cx88/cx88-alsa.c +++ b/linux/drivers/media/video/cx88/cx88-alsa.c @@ -112,7 +112,6 @@ typedef struct cx88_audio_dev snd_cx88_card_t; static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ static int enable[SNDRV_CARDS] = {1, [1 ... (SNDRV_CARDS - 1)] = 1}; -static struct snd_card *snd_cx88_cards[SNDRV_CARDS]; #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,10) static unsigned int dummy; @@ -811,8 +810,6 @@ static int __devinit cx88_audio_initdev(struct pci_dev *pci, snd_card_free(card); return (err); } - snd_cx88_cards[devno] = card; - pci_set_drvdata(pci,card); devno++; |