diff options
author | Minghao Chi <chi.minghao@zte.com.cn> | 2022-04-29 05:47:51 +0000 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2022-05-19 11:16:49 +0200 |
commit | b93a85c145d9c745ae74ad43046e75bbf98adc12 (patch) | |
tree | 75985603a13c0995da2e57b29e4ad66743509141 /drivers/video | |
parent | b23789a59fa6f00e98a319291819f91fbba0deb8 (diff) |
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>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/fbdev/omap2/omapfb/dss/hdmi_pll.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/video/fbdev/omap2/omapfb/dss/hdmi_pll.c b/drivers/video/fbdev/omap2/omapfb/dss/hdmi_pll.c index c5f89129dcdd..531b36d2232b 100644 --- a/drivers/video/fbdev/omap2/omapfb/dss/hdmi_pll.c +++ b/drivers/video/fbdev/omap2/omapfb/dss/hdmi_pll.c @@ -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)) { @@ -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, |