serial: uartps: Remove useless return from cdns_uart_poll_put_char
authorNava kishore Manne <nava.manne@xilinx.com>
Wed, 12 Jun 2019 11:14:43 +0000 (13:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Jun 2019 07:34:28 +0000 (09:34 +0200)
There is no reason to call return at the end of function which should
return void.

The patch is also remove one checkpatch warning:
WARNING: void function return statements are not generally useful
+ return;
+}

Fixes: 6ee04c6c5488 ("tty: xuartps: Add polled mode support for xuartps")
Signed-off-by: Nava kishore Manne <nava.manne@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/xilinx_uartps.c

index e6f23fbf077aec0a0684481618cd4ae29ef5c8df..f145946f659b424ffa5e79ec0ac3086ed6ef19c1 100644 (file)
@@ -1079,8 +1079,6 @@ static void cdns_uart_poll_put_char(struct uart_port *port, unsigned char c)
                cpu_relax();
 
        spin_unlock_irqrestore(&port->lock, flags);
-
-       return;
 }
 #endif