[PATCH 2/4] SOUND: serial-u16550, use unitialized_var(uart)

From: Jiri Slaby
Date: Tue Aug 25 2009 - 16:59:47 EST

To avoid a wrong compiler warning, use unitialized_var(uart) in

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;


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/