serial: vr41xx_siu: delete double assignment
authorJulia Lawall <Julia.Lawall@lip6.fr>
Sat, 23 Aug 2014 18:33:24 +0000 (20:33 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Sep 2014 23:17:45 +0000 (16:17 -0700)
Delete successive assignments to the same location.

A simplified version of the semantic match that finds this problem is as
follows: (http://coccinelle.lip6.fr/)

// <smpl>
@@
expression i;
@@

*i = ...;
 i = ...;
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/vr41xx_siu.c

index db0c8a4ab03e1852c8924d0ede3f0a02a53fe4e8..d7f9d622cdcb6ce35fd92644bd3c7cc97525d989 100644 (file)
@@ -847,7 +847,6 @@ void __init vr41xx_siu_early_setup(struct uart_port *port)
        siu_uart_ports[port->line].type = port->type;
        siu_uart_ports[port->line].uartclk = SIU_BAUD_BASE * 16;
        siu_uart_ports[port->line].mapbase = port->mapbase;
-       siu_uart_ports[port->line].mapbase = port->mapbase;
        siu_uart_ports[port->line].ops = &siu_uart_ops;
 }