mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-22 09:08:20 +07:00
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>
This commit is contained in:
parent
24c796926e
commit
b63537020d
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user