diff options
| author | Soren Brinkmann <soren.brinkmann@xilinx.com> | 2013-10-21 19:40:59 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-10-29 12:26:11 -0400 |
| commit | d54b181ea65682914cae0430f2a1efcbb6517dba (patch) | |
| tree | 7ae8fc0feeddcd5bffcd964d0fdfbb93502e5918 /drivers/tty | |
| parent | 943414752045defdd7e476a830e2d8c0ec37cca2 (diff) | |
tty: xuartps: Fix "may be used uninitialized" build warning
Initialize varibles for which a 'may be used uninitalized' warning is
issued.
Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
| -rw-r--r-- | drivers/tty/serial/xilinx_uartps.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/xilinx_uartps.c b/drivers/tty/serial/xilinx_uartps.c index c7c96c2f149c..5ac6c480df43 100644 --- a/drivers/tty/serial/xilinx_uartps.c +++ b/drivers/tty/serial/xilinx_uartps.c | |||
| @@ -389,7 +389,7 @@ static unsigned int xuartps_set_baud_rate(struct uart_port *port, | |||
| 389 | unsigned int baud) | 389 | unsigned int baud) |
| 390 | { | 390 | { |
| 391 | unsigned int calc_baud; | 391 | unsigned int calc_baud; |
| 392 | u32 cd, bdiv; | 392 | u32 cd = 0, bdiv = 0; |
| 393 | u32 mreg; | 393 | u32 mreg; |
| 394 | int div8; | 394 | int div8; |
| 395 | struct xuartps *xuartps = port->private_data; | 395 | struct xuartps *xuartps = port->private_data; |
