Skip to content

Commit

Permalink
video: fbdev: omapfb: simplify the return expression of dsi_init_pll_…
Browse files Browse the repository at this point in the history
…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>
  • Loading branch information
Minghao Chi authored and Helge Deller committed May 19, 2022
1 parent b23789a commit b93a85c
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions drivers/video/fbdev/omap2/omapfb/dss/hdmi_pll.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 clk *clk;
int r;

clk = devm_clk_get(&pdev->dev, "sys_clk");
if (IS_ERR(clk)) {
Expand Down Expand Up @@ -203,12 +202,7 @@ static int dsi_init_pll_data(struct platform_device *pdev, struct hdmi_pll_data
}

pll->ops = &dsi_pll_ops;

r = dss_pll_register(pll);
if (r)
return r;

return 0;
return dss_pll_register(pll);
}

int hdmi_pll_init(struct platform_device *pdev, struct hdmi_pll_data *pll,
Expand Down

0 comments on commit b93a85c

Please sign in to comment.