summaryrefslogtreecommitdiffstats
path: root/drivers/tty
diff options
context:
space:
mode:
authorQinglang Miao <miaoqinglang@huawei.com>2020-09-21 15:11:05 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-09-27 14:17:43 +0200
commitb63537020db34ac3f88086095cc49df65283fb61 (patch)
tree507f469a0a96cda93ee2b5feac20a47690b8707c /drivers/tty
parenttty: serial: imx: fix link error with CONFIG_SERIAL_CORE_CONSOLE=n (diff)
downloadlinux-b63537020db34ac3f88086095cc49df65283fb61.tar.xz
linux-b63537020db34ac3f88086095cc49df65283fb61.zip
serial: mvebu-uart: simplify the return expression of mvebu_uart_probe()
Simplify the return expression. Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com> Link: https://lore.kernel.org/r/20200921131105.93177-1-miaoqinglang@huawei.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/serial/mvebu-uart.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/tty/serial/mvebu-uart.c b/drivers/tty/serial/mvebu-uart.c
index 4e9a590712cb..7443c0506eb4 100644
--- a/drivers/tty/serial/mvebu-uart.c
+++ b/drivers/tty/serial/mvebu-uart.c
@@ -912,10 +912,7 @@ static int mvebu_uart_probe(struct platform_device *pdev)
udelay(1);
writel(0, port->membase + UART_CTRL(port));
- ret = uart_add_one_port(&mvebu_uart_driver, port);
- if (ret)
- return ret;
- return 0;
+ return uart_add_one_port(&mvebu_uart_driver, port);
}
static struct mvebu_uart_driver_data uart_std_driver_data = {