video: fbdev: omapfb: simplify the return expression of dsi_init_pll_data()
Simplify the return expression. Reported-by: Zeal Robot <zealci@zte.com.cn> Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn> Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
parent
b23789a59f
commit
b93a85c145
|
@ -173,7 +173,6 @@ static int dsi_init_pll_data(struct platform_device *pdev, struct hdmi_pll_data
|
||||||
{
|
{
|
||||||
struct dss_pll *pll = &hpll->pll;
|
struct dss_pll *pll = &hpll->pll;
|
||||||
struct clk *clk;
|
struct clk *clk;
|
||||||
int r;
|
|
||||||
|
|
||||||
clk = devm_clk_get(&pdev->dev, "sys_clk");
|
clk = devm_clk_get(&pdev->dev, "sys_clk");
|
||||||
if (IS_ERR(clk)) {
|
if (IS_ERR(clk)) {
|
||||||
|
@ -203,12 +202,7 @@ static int dsi_init_pll_data(struct platform_device *pdev, struct hdmi_pll_data
|
||||||
}
|
}
|
||||||
|
|
||||||
pll->ops = &dsi_pll_ops;
|
pll->ops = &dsi_pll_ops;
|
||||||
|
return dss_pll_register(pll);
|
||||||
r = dss_pll_register(pll);
|
|
||||||
if (r)
|
|
||||||
return r;
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int hdmi_pll_init(struct platform_device *pdev, struct hdmi_pll_data *pll,
|
int hdmi_pll_init(struct platform_device *pdev, struct hdmi_pll_data *pll,
|
||||||
|
|
Loading…
Reference in New Issue