Skip to content

Commit

Permalink
V4L/DVB (6084): cx88-alsa: Eliminate snd_cx88_cards
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Trent Piepho authored and Mauro Carvalho Chehab committed Oct 10, 2007
1 parent 05b2723 commit ffb7394
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/media/video/cx88/cx88-alsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,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];

module_param_array(enable, bool, NULL, 0444);
MODULE_PARM_DESC(enable, "Enable cx88x soundcard. default enabled.");
Expand Down Expand Up @@ -759,8 +758,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++;
Expand Down

0 comments on commit ffb7394

Please sign in to comment.