aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial
diff options
context:
space:
mode:
authorRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>2014-06-01 09:38:24 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-07-09 20:38:21 -0400
commit2b844ad2bfdb6e21e6490f3a80f67d869c10df4a (patch)
treee2cb0ae17d8660207e183c253f9b53a6688c7238 /drivers/tty/serial
parent7282cec90365533befce1552ab09edbcd0af0dbd (diff)
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 <rickard_strandqvist@spectrumdigital.se> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial')
-rw-r--r--drivers/tty/serial/msm_serial.c2
1 files changed, 1 insertions, 1 deletions
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)
917{ 917{
918 struct uart_port *port; 918 struct uart_port *port;
919 struct msm_port *msm_port; 919 struct msm_port *msm_port;
920 int baud, flow, bits, parity; 920 int baud = 0, flow, bits, parity;
921 921
922 if (unlikely(co->index >= UART_NR || co->index < 0)) 922 if (unlikely(co->index >= UART_NR || co->index < 0))
923 return -ENXIO; 923 return -ENXIO;