Skip to content

Commit

Permalink
[ALSA] ali5451 - Fix invalid type of codec->irq field
Browse files Browse the repository at this point in the history
The irq field of struct snd_ali shouldn't be unsigned since it's
uninitialized value is -1.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
  • Loading branch information
Takashi Iwai authored and Jaroslav Kysela committed Jul 20, 2007
1 parent 807a463 commit ba8c3c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/pci/ali5451/ali5451.c
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ struct snd_ali_image {


struct snd_ali {
unsigned long irq;
int irq;
unsigned long port;
unsigned char revision;

Expand Down Expand Up @@ -2343,7 +2343,7 @@ static int __devinit snd_ali_probe(struct pci_dev *pci,
strcpy(card->driver, "ALI5451");
strcpy(card->shortname, "ALI 5451");

sprintf(card->longname, "%s at 0x%lx, irq %li",
sprintf(card->longname, "%s at 0x%lx, irq %i",
card->shortname, codec->port, codec->irq);

snd_ali_printk("register card.\n");
Expand Down

0 comments on commit ba8c3c3

Please sign in to comment.