Commit 77ec669f authored by Michal Simek's avatar Michal Simek Committed by Greg Kroah-Hartman

serial: uartps: Do not initialize field to zero again

Writing zero and NULLs to already initialized fields is not needed.
Remove this additional writes.
Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4bb1ce23
...@@ -1503,15 +1503,12 @@ static int cdns_uart_probe(struct platform_device *pdev) ...@@ -1503,15 +1503,12 @@ static int cdns_uart_probe(struct platform_device *pdev)
/* At this point, we've got an empty uart_port struct, initialize it */ /* At this point, we've got an empty uart_port struct, initialize it */
spin_lock_init(&port->lock); spin_lock_init(&port->lock);
port->membase = NULL;
port->irq = 0;
port->type = PORT_UNKNOWN; port->type = PORT_UNKNOWN;
port->iotype = UPIO_MEM32; port->iotype = UPIO_MEM32;
port->flags = UPF_BOOT_AUTOCONF; port->flags = UPF_BOOT_AUTOCONF;
port->ops = &cdns_uart_ops; port->ops = &cdns_uart_ops;
port->fifosize = CDNS_UART_FIFO_SIZE; port->fifosize = CDNS_UART_FIFO_SIZE;
port->line = id; port->line = id;
port->dev = NULL;
/* /*
* Register the port. * Register the port.
......
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