Przeglądaj źródła

[ALSA] serial-uart16550 - Fix a compile warning

Modules: Generic drivers

Fix a gcc-4.1 compile warning regarding uninitialized variables.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Takashi Iwai 19 lat temu
rodzic
commit
68b8bc0521
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      sound/drivers/serial-u16550.c

+ 1 - 1
sound/drivers/serial-u16550.c

@@ -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) {