Skip to content

Commit b93a85c

Browse files
Minghao Chihdeller
authored andcommitted
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>
1 parent b23789a commit b93a85c

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

drivers/video/fbdev/omap2/omapfb/dss/hdmi_pll.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,6 @@ static int dsi_init_pll_data(struct platform_device *pdev, struct hdmi_pll_data
173173
{
174174
struct dss_pll *pll = &hpll->pll;
175175
struct clk *clk;
176-
int r;
177176

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

205204
pll->ops = &dsi_pll_ops;
206-
207-
r = dss_pll_register(pll);
208-
if (r)
209-
return r;
210-
211-
return 0;
205+
return dss_pll_register(pll);
212206
}
213207

214208
int hdmi_pll_init(struct platform_device *pdev, struct hdmi_pll_data *pll,

0 commit comments

Comments
 (0)