msm_serial: Fix uninitialized variable
baud variable might be used uninitialized. Hence initialized
the same.
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
diff --git a/drivers/tty/serial/msm_serial.c b/drivers/tty/serial/msm_serial.c
index dc87ef9..4400441 100644
--- a/drivers/tty/serial/msm_serial.c
+++ b/drivers/tty/serial/msm_serial.c
@@ -939,7 +939,7 @@
static int __init msm_console_setup(struct console *co, char *options)
{
struct uart_port *port;
- int baud, flow, bits, parity;
+ int baud = 0, flow, bits, parity;
if (unlikely(co->index >= UART_NR || co->index < 0))
return -ENXIO;