Skip to content

Commit defa1dc

Browse files
Qinglang Miaosravnborg
authored andcommitted
omapfb: simplify the return expression of hdmi_pll_enable
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
1 parent 10732a0 commit defa1dc

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,7 @@ static int hdmi_pll_enable(struct dss_pll *dsspll)
104104

105105
dss_ctrl_pll_enable(DSS_PLL_HDMI, true);
106106

107-
r = hdmi_wp_set_pll_pwr(wp, HDMI_PLLPWRCMD_BOTHON_ALLCLKS);
108-
if (r)
109-
return r;
110-
111-
return 0;
107+
return hdmi_wp_set_pll_pwr(wp, HDMI_PLLPWRCMD_BOTHON_ALLCLKS);
112108
}
113109

114110
static void hdmi_pll_disable(struct dss_pll *dsspll)

0 commit comments

Comments
 (0)