Browse Source

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 <yamada.masahiro@socionext.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Masahiro Yamada 10 years ago
parent
commit
7a7a7e6d9b
1 changed files with 0 additions and 1 deletions
  1. 0 1
      drivers/tty/serial/of_serial.c

+ 0 - 1
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;
 		struct uart_8250_port port8250;
 		memset(&port8250, 0, sizeof(port8250));
 		memset(&port8250, 0, sizeof(port8250));
-		port.type = port_type;
 		port8250.port = port;
 		port8250.port = port;
 
 
 		if (port.fifosize)
 		if (port.fifosize)