Commit d54b181e authored by Soren Brinkmann's avatar Soren Brinkmann Committed by Greg Kroah-Hartman

tty: xuartps: Fix "may be used uninitialized" build warning

Initialize varibles for which a 'may be used uninitalized' warning is
issued.
Signed-off-by: default avatarSoren Brinkmann <soren.brinkmann@xilinx.com>
Reported-by: default avatarkbuild test robot <fengguang.wu@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 94341475
...@@ -389,7 +389,7 @@ static unsigned int xuartps_set_baud_rate(struct uart_port *port, ...@@ -389,7 +389,7 @@ static unsigned int xuartps_set_baud_rate(struct uart_port *port,
unsigned int baud) unsigned int baud)
{ {
unsigned int calc_baud; unsigned int calc_baud;
u32 cd, bdiv; u32 cd = 0, bdiv = 0;
u32 mreg; u32 mreg;
int div8; int div8;
struct xuartps *xuartps = port->private_data; struct xuartps *xuartps = port->private_data;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment