tty: xuartps: Fix "may be used uninitialized" build warning
authorSoren Brinkmann <soren.brinkmann@xilinx.com>
Mon, 21 Oct 2013 23:40:59 +0000 (16:40 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Oct 2013 16:26:11 +0000 (09:26 -0700)
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>
drivers/tty/serial/xilinx_uartps.c

index c7c96c2f149cb76e613fcc144b06feae18b4b2d6..5ac6c480df431504fa3b70f4e292d66430171154 100644 (file)
@@ -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;
This page took 0.027075 seconds and 5 git commands to generate.