Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d77dc47f authored by Himanshu Jha's avatar Himanshu Jha Committed by Greg Kroah-Hartman
Browse files

tty: serial: 8250_mtk: Use PTR_ERR_OR_ZERO



Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR

Signed-off-by: default avatarHimanshu Jha <himanshujha199640@gmail.com>
Reviewed-by: default avatarMatthias Brugger <matthias.bgg@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent dde68266
Loading
Loading
Loading
Loading
+1 −4
Original line number Original line Diff line number Diff line
@@ -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");
	data->bus_clk = devm_clk_get(&pdev->dev, "bus");
	if (IS_ERR(data->bus_clk))
	return PTR_ERR_OR_ZERO(data->bus_clk);
		return PTR_ERR(data->bus_clk);

	return 0;
}
}


static int mtk8250_probe(struct platform_device *pdev)
static int mtk8250_probe(struct platform_device *pdev)