Skip to content

Commit

Permalink
[ALSA] serial-uart16550 - Fix a compile warning
Browse files Browse the repository at this point in the history
Modules: Generic drivers

Fix a gcc-4.1 compile warning regarding uninitialized variables.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Takashi Iwai authored and Jaroslav Kysela committed Feb 1, 2006
1 parent 9113485 commit 68b8bc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/drivers/serial-u16550.c
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ static int __init snd_uart16550_create(struct snd_card *card,

if ((err = snd_uart16550_detect(uart)) <= 0) {
printk(KERN_ERR "no UART detected at 0x%lx\n", iobase);
return err;
return -ENODEV;
}

if (irq >= 0 && irq != SNDRV_AUTO_IRQ) {
Expand Down

0 comments on commit 68b8bc0

Please sign in to comment.