aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial
diff options
context:
space:
mode:
authorNava kishore Manne <nava.manne@xilinx.com>2019-06-12 13:14:43 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-06-18 09:34:28 +0200
commit8d53935d9beb4b9b51fdae9296e4a7840214a64a (patch)
tree71eff66defeb8e34d94b4739d7330b49d3959f3c /drivers/tty/serial
parentserial: uartps: Do not add a trailing semicolon to macro (diff)
downloadlinux-dev-8d53935d9beb4b9b51fdae9296e4a7840214a64a.tar.xz
linux-dev-8d53935d9beb4b9b51fdae9296e4a7840214a64a.zip
serial: uartps: Remove useless return from cdns_uart_poll_put_char
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>
Diffstat (limited to 'drivers/tty/serial')
-rw-r--r--drivers/tty/serial/xilinx_uartps.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/tty/serial/xilinx_uartps.c b/drivers/tty/serial/xilinx_uartps.c
index e6f23fbf077a..f145946f659b 100644
--- a/drivers/tty/serial/xilinx_uartps.c
+++ b/drivers/tty/serial/xilinx_uartps.c
@@ -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