Skip to content

Commit 2b844ad

Browse files
Rickard Strandqvistgregkh
authored andcommitted
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 <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 7282cec commit 2b844ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/tty/serial/msm_serial.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -917,7 +917,7 @@ static int __init msm_console_setup(struct console *co, char *options)
917917
{
918918
struct uart_port *port;
919919
struct msm_port *msm_port;
920-
int baud, flow, bits, parity;
920+
int baud = 0, flow, bits, parity;
921921

922922
if (unlikely(co->index >= UART_NR || co->index < 0))
923923
return -ENXIO;

0 commit comments

Comments
 (0)