summaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/xilinx_uartps.c
diff options
context:
space:
mode:
authorSoren Brinkmann <soren.brinkmann@xilinx.com>2013-10-22 01:40:59 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-10-29 17:26:11 +0100
commitd54b181ea65682914cae0430f2a1efcbb6517dba (patch)
tree7ae8fc0feeddcd5bffcd964d0fdfbb93502e5918 /drivers/tty/serial/xilinx_uartps.c
parentserial: 8250_pci: add Pericom PCIe Serial board Support (12d8:7952/4/8) - Chi... (diff)
downloadlinux-d54b181ea65682914cae0430f2a1efcbb6517dba.tar.xz
linux-d54b181ea65682914cae0430f2a1efcbb6517dba.zip
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/serial/xilinx_uartps.c')
-rw-r--r--drivers/tty/serial/xilinx_uartps.c2
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,
unsigned int baud)
{
unsigned int calc_baud;
- u32 cd, bdiv;
+ u32 cd = 0, bdiv = 0;
u32 mreg;
int div8;
struct xuartps *xuartps = port->private_data;