From: Himanshu Jha Date: Sun, 27 Aug 2017 06:31:41 +0000 (+0530) Subject: tty: serial: 8250_mtk: Use PTR_ERR_OR_ZERO X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d77dc47fce23daf57f60cb407698108229a33e8c;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git tty: serial: 8250_mtk: Use PTR_ERR_OR_ZERO Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Signed-off-by: Himanshu Jha Reviewed-by: Matthias Brugger Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/serial/8250/8250_mtk.c b/drivers/tty/serial/8250/8250_mtk.c index ce0cc471bfc3..fb45770d47aa 100644 --- a/drivers/tty/serial/8250/8250_mtk.c +++ b/drivers/tty/serial/8250/8250_mtk.c @@ -171,10 +171,7 @@ static int mtk8250_probe_of(struct platform_device *pdev, struct uart_port *p, } data->bus_clk = devm_clk_get(&pdev->dev, "bus"); - if (IS_ERR(data->bus_clk)) - return PTR_ERR(data->bus_clk); - - return 0; + return PTR_ERR_OR_ZERO(data->bus_clk); } static int mtk8250_probe(struct platform_device *pdev)