Commit 8d53935d authored by Nava kishore Manne's avatar Nava kishore Manne Committed by Greg Kroah-Hartman
Browse files

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: 6ee04c6c ("tty: xuartps: Add polled mode support for xuartps")
Signed-off-by: default avatarNava kishore Manne <nava.manne@xilinx.com>
Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7be7a014
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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