From: Masahiro Yamada Date: Fri, 8 May 2015 04:03:13 +0000 (+0900) Subject: serial: of_serial: do not set port.type twice X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7a7a7e6d9b8f78e73b45bdc436c5fbdbb7220c74;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git serial: of_serial: do not set port.type twice The port.type has already been set by of_platform_serial_setup() called from a few lines above. Setting it to the same value is redundant. Signed-off-by: Masahiro Yamada Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/serial/of_serial.c b/drivers/tty/serial/of_serial.c index 137381e649e5..28b9b4789bbf 100644 --- a/drivers/tty/serial/of_serial.c +++ b/drivers/tty/serial/of_serial.c @@ -188,7 +188,6 @@ static int of_platform_serial_probe(struct platform_device *ofdev) { struct uart_8250_port port8250; memset(&port8250, 0, sizeof(port8250)); - port.type = port_type; port8250.port = port; if (port.fifosize)