mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-10 15:58:47 +00:00
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>
This commit is contained in:
parent
9434147520
commit
d54b181ea6
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user