Skip to content

Commit

Permalink
serial: mvebu-uart: simplify the return expression of mvebu_uart_probe()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Qinglang Miao authored and Greg Kroah-Hartman committed Sep 27, 2020
1 parent 24c7969 commit b635370
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/tty/serial/mvebu-uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit b635370

Please sign in to comment.