From: Rickard Strandqvist Date: Sun, 1 Jun 2014 13:38:24 +0000 (+0200) Subject: tty: serial: msm_serial.c: Cleaning up uninitialized variables X-Git-Tag: v3.17-rc1~122^2~70 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2b844ad2bfdb6e21e6490f3a80f67d869c10df4a;p=karo-tx-linux.git tty: serial: msm_serial.c: Cleaning up uninitialized variables There is a risk that the variable will be used without being initialized. This was largely found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/serial/msm_serial.c b/drivers/tty/serial/msm_serial.c index 72000a6d5af0..90feee190f2a 100644 --- a/drivers/tty/serial/msm_serial.c +++ b/drivers/tty/serial/msm_serial.c @@ -917,7 +917,7 @@ static int __init msm_console_setup(struct console *co, char *options) { struct uart_port *port; struct msm_port *msm_port; - int baud, flow, bits, parity; + int baud = 0, flow, bits, parity; if (unlikely(co->index >= UART_NR || co->index < 0)) return -ENXIO;