summaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial
diff options
context:
space:
mode:
authorRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>2014-06-01 15:38:24 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-07-10 02:38:21 +0200
commit2b844ad2bfdb6e21e6490f3a80f67d869c10df4a (patch)
treee2cb0ae17d8660207e183c253f9b53a6688c7238 /drivers/tty/serial
parentserial: sirf: transfer more bytes once to decrease interrupts (diff)
downloadlinux-2b844ad2bfdb6e21e6490f3a80f67d869c10df4a.tar.xz
linux-2b844ad2bfdb6e21e6490f3a80f67d869c10df4a.zip
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)
{
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;