To avoid a wrong compiler warning, use unitialized_var(uart) in snd_uart16550_rmidi. If uart is unitialized, we return before its use. Signed-off-by: Jiri Slaby <jirislaby@xxxxxxxxx> Cc: Takashi Iwai <tiwai@xxxxxxx> Cc: Jaroslav Kysela <perex@xxxxxxxx> Cc: Isaku Yamahata <yamahata@xxxxxxxxxxxxxxxxxxx> Cc: George Hansper <ghansper@xxxxxxxxxxxx> --- sound/drivers/serial-u16550.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/sound/drivers/serial-u16550.c b/sound/drivers/serial-u16550.c index a25fb7b..5f8ae28 100644 --- a/sound/drivers/serial-u16550.c +++ b/sound/drivers/serial-u16550.c @@ -902,7 +902,7 @@ static int __devinit snd_uart16550_rmidi(struct snd_uart16550 *uart, int device, static int __devinit snd_serial_probe(struct platform_device *devptr) { struct snd_card *card; - struct snd_uart16550 *uart; + struct snd_uart16550 *uninitialized_var(uart); int err; int dev = devptr->id; -- 1.6.3.3 _______________________________________________ Alsa-devel mailing list Alsa-devel@xxxxxxxxxxxxxxxx http://mailman.alsa-project.org/mailman/listinfo/alsa-devel