diff options
author | Michal Simek <michal.simek@xilinx.com> | 2018-09-03 15:10:50 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-09-18 16:07:22 +0200 |
commit | 77ec669f257b2d71a641a5c67fc9ca826a8e227e (patch) | |
tree | c31618029815f5ef612e4c3f1028993cb239d5db /drivers/tty/serial/xilinx_uartps.c | |
parent | 4bb1ce2350a598502b23088b169e16b43d4bc639 (diff) | |
download | linux-stable-77ec669f257b2d71a641a5c67fc9ca826a8e227e.tar.gz linux-stable-77ec669f257b2d71a641a5c67fc9ca826a8e227e.tar.bz2 linux-stable-77ec669f257b2d71a641a5c67fc9ca826a8e227e.zip |
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: Michal Simek <michal.simek@xilinx.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.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/tty/serial/xilinx_uartps.c b/drivers/tty/serial/xilinx_uartps.c index fdb984b9eb28..edb9c2aeee72 100644 --- a/drivers/tty/serial/xilinx_uartps.c +++ b/drivers/tty/serial/xilinx_uartps.c @@ -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 */ spin_lock_init(&port->lock); - port->membase = NULL; - port->irq = 0; port->type = PORT_UNKNOWN; port->iotype = UPIO_MEM32; port->flags = UPF_BOOT_AUTOCONF; port->ops = &cdns_uart_ops; port->fifosize = CDNS_UART_FIFO_SIZE; port->line = id; - port->dev = NULL; /* * Register the port. |