omapfb: simplify the return expression of hdmi_pll_enable
authorQinglang Miao <miaoqinglang@huawei.com>
Mon, 21 Sep 2020 13:11:12 +0000 (21:11 +0800)
committerSam Ravnborg <sam@ravnborg.org>
Fri, 16 Oct 2020 21:16:40 +0000 (23:16 +0200)
Simplify the return expression.

Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200921131112.93411-1-miaoqinglang@huawei.com
drivers/video/fbdev/omap2/omapfb/dss/hdmi_pll.c

index 4991be0..a36e921 100644 (file)
@@ -104,11 +104,7 @@ static int hdmi_pll_enable(struct dss_pll *dsspll)
 
        dss_ctrl_pll_enable(DSS_PLL_HDMI, true);
 
-       r = hdmi_wp_set_pll_pwr(wp, HDMI_PLLPWRCMD_BOTHON_ALLCLKS);
-       if (r)
-               return r;
-
-       return 0;
+       return hdmi_wp_set_pll_pwr(wp, HDMI_PLLPWRCMD_BOTHON_ALLCLKS);
 }
 
 static void hdmi_pll_disable(struct dss_pll *dsspll)